{ "Type": "JsonSerialization", "Version": 1, "ClassName": "ScriptCanvasData", "ClassData": { "m_scriptCanvas": { "Id": { "id": 783173014439 }, "Name": "Script Canvas Graph", "Components": { "Component_[10611169044980592028]": { "$type": "EditorGraph", "Id": 10611169044980592028, "m_graphData": { "m_nodes": [ { "Id": { "id": 787467981735 }, "Name": "SC-Node(SpawnNodeableNode)", "Components": { "Component_[1476932525367965546]": { "$type": "SpawnNodeableNode", "Id": 1476932525367965546, "Slots": [ { "id": { "m_id": "{22EB0400-7BFB-49EF-9499-CB99F9B09463}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Request Spawn", "DisplayGroup": { "Value": 929942742 }, "Descriptor": { "ConnectionType": 1, "SlotType": 1 } }, { "id": { "m_id": "{26E87FA9-0D4C-4473-BDE8-B98987D5CF3C}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "SpawnTicket", "toolTip": "Ticket instance assosiated with spawnable asset.", "DisplayGroup": { "Value": 929942742 }, "Descriptor": { "ConnectionType": 1, "SlotType": 2 }, "DataType": 1, "IsReference": true, "VariableReference": { "m_id": "{8F78F38D-D11F-4A13-B904-FEF421C82BF6}" } }, { "id": { "m_id": "{CF354F5A-103B-4B99-B5D7-8EAA5530EC75}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "ParentId", "toolTip": "Optional parent to assign spawned container entity to.", "DisplayGroup": { "Value": 929942742 }, "Descriptor": { "ConnectionType": 1, "SlotType": 2 }, "DataType": 1 }, { "id": { "m_id": "{B9EA4737-4BEB-4D92-AEBE-473F9E0FD2F2}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Local Translation", "toolTip": "Position to spawn.", "DisplayGroup": { "Value": 929942742 }, "Descriptor": { "ConnectionType": 1, "SlotType": 2 }, "DataType": 1 }, { "id": { "m_id": "{D2015B5F-4B0F-4EFD-8C94-A5DAC7EE8CD8}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Local Rotation", "toolTip": "Rotation of spawn (in degrees).", "DisplayGroup": { "Value": 929942742 }, "Descriptor": { "ConnectionType": 1, "SlotType": 2 }, "DataType": 1 }, { "id": { "m_id": "{D00B067F-8181-4770-8B10-AF7F559C42FD}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Local Scale", "toolTip": "Scale of spawn.", "DisplayGroup": { "Value": 929942742 }, "Descriptor": { "ConnectionType": 1, "SlotType": 2 }, "DataType": 1 }, { "id": { "m_id": "{787A3D5F-D926-487C-A7DB-E9B68F535F7B}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Spawn Requested", "DisplayGroup": { "Value": 929942742 }, "Descriptor": { "ConnectionType": 2, "SlotType": 1 } }, { "id": { "m_id": "{F1CDB870-DDB4-4BAC-9A44-2209F89C1664}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "On Spawn Completed", "toolTip": "Called when spawning entities is completed.", "DisplayGroup": { "Value": 3165055374 }, "Descriptor": { "ConnectionType": 2, "SlotType": 1 }, "IsLatent": true }, { "id": { "m_id": "{2AF6D299-A808-4965-A9E7-9BE7D2087CD3}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "SpawnTicketOut", "toolTip": "Ticket instance of the spawn result.", "DisplayDataType": { "m_type": 4, "m_azType": "{BA62FF9A-A01E-4FEB-84C6-200881DF2B2B}" }, "DisplayGroup": { "Value": 3165055374 }, "Descriptor": { "ConnectionType": 2, "SlotType": 2 }, "DataType": 1 }, { "id": { "m_id": "{5D2D0F95-C36F-4895-A873-49F4FE6EEF73}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "SpawnedEntitiesList", "toolTip": "List of spawned entities sorted by hierarchy with the root being first.", "DisplayDataType": { "m_type": 4, "m_azType": "{4841CFF0-7A5C-519C-BD16-D3625E99605E}" }, "DisplayGroup": { "Value": 3165055374 }, "Descriptor": { "ConnectionType": 2, "SlotType": 2 }, "DataType": 1 } ], "Datums": [ { "scriptCanvasType": { "m_type": 4, "m_azType": "{BA62FF9A-A01E-4FEB-84C6-200881DF2B2B}" }, "isNullPointer": false, "$type": "AzFramework::EntitySpawnTicket", "label": "SpawnTicket" }, { "scriptCanvasType": { "m_type": 1 }, "isNullPointer": false, "$type": "EntityId", "value": { "id": 2901262558 }, "label": "ParentId" }, { "scriptCanvasType": { "m_type": 8 }, "isNullPointer": false, "$type": "Vector3", "value": [ 5.0, 0.0, 0.0 ], "label": "Local Translation" }, { "scriptCanvasType": { "m_type": 8 }, "isNullPointer": false, "$type": "Vector3", "value": [ 0.0, 0.0, 90.0 ], "label": "Local Rotation" }, { "scriptCanvasType": { "m_type": 3 }, "isNullPointer": false, "$type": "double", "value": 5.0, "label": "Local Scale" } ], "slotExecutionMap": { "ins": [ { "_slotId": { "m_id": "{22EB0400-7BFB-49EF-9499-CB99F9B09463}" }, "_inputs": [ { "_slotId": { "m_id": "{26E87FA9-0D4C-4473-BDE8-B98987D5CF3C}" } }, { "_slotId": { "m_id": "{CF354F5A-103B-4B99-B5D7-8EAA5530EC75}" } }, { "_slotId": { "m_id": "{B9EA4737-4BEB-4D92-AEBE-473F9E0FD2F2}" } }, { "_slotId": { "m_id": "{D2015B5F-4B0F-4EFD-8C94-A5DAC7EE8CD8}" } }, { "_slotId": { "m_id": "{D00B067F-8181-4770-8B10-AF7F559C42FD}" } } ], "_outs": [ { "_slotId": { "m_id": "{787A3D5F-D926-487C-A7DB-E9B68F535F7B}" }, "_name": "Spawn Requested", "_interfaceSourceId": "{20000000-0000-0000-AB46-C51AFF7F0000}" } ], "_interfaceSourceId": "{02000000-0000-0000-2070-75CB2E000000}" } ], "latents": [ { "_slotId": { "m_id": "{F1CDB870-DDB4-4BAC-9A44-2209F89C1664}" }, "_name": "On Spawn Completed", "_outputs": [ { "_slotId": { "m_id": "{2AF6D299-A808-4965-A9E7-9BE7D2087CD3}" } }, { "_slotId": { "m_id": "{5D2D0F95-C36F-4895-A873-49F4FE6EEF73}" } } ], "_interfaceSourceId": "{02000000-0000-0000-2070-75CB2E000000}" } ] } } } }, { "Id": { "id": 791762949031 }, "Name": "SC-Node(CreateSpawnTicketNodeableNode)", "Components": { "Component_[16146807270646666965]": { "$type": "CreateSpawnTicketNodeableNode", "Id": 16146807270646666965, "Slots": [ { "id": { "m_id": "{71653BC0-1B42-4EB9-B0F4-78C8ABA8F27A}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Create Ticket", "DisplayGroup": { "Value": 3070342103 }, "Descriptor": { "ConnectionType": 1, "SlotType": 1 } }, { "id": { "m_id": "{8D6F4EE5-EB2F-4671-ABCA-E8F588B8F51F}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Prefab", "toolTip": "Prefab source asset to spawn", "DisplayGroup": { "Value": 3070342103 }, "Descriptor": { "ConnectionType": 1, "SlotType": 2 }, "DataType": 1, "IsReference": true, "VariableReference": { "m_id": "{41E649ED-32B8-4E95-83DE-F598FC9573D8}" } }, { "id": { "m_id": "{6C10C7BF-AEB3-448B-A4A3-0ED3B56DB813}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Ticket Created", "DisplayGroup": { "Value": 3070342103 }, "Descriptor": { "ConnectionType": 2, "SlotType": 1 } }, { "id": { "m_id": "{684BE347-8E40-4DDB-8280-3FAF70E1452C}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "SpawnTicket", "DisplayDataType": { "m_type": 4, "m_azType": "{BA62FF9A-A01E-4FEB-84C6-200881DF2B2B}" }, "DisplayGroup": { "Value": 3070342103 }, "Descriptor": { "ConnectionType": 2, "SlotType": 2 }, "DataType": 1, "IsReference": true, "VariableReference": { "m_id": "{8F78F38D-D11F-4A13-B904-FEF421C82BF6}" } } ], "Datums": [ { "scriptCanvasType": { "m_type": 4, "m_azType": "{A96A5037-AD0D-43B6-9948-ED63438C4A52}" }, "isNullPointer": false, "$type": "AzFramework::Scripts::SpawnableScriptAssetRef", "label": "Prefab" } ], "slotExecutionMap": { "ins": [ { "_slotId": { "m_id": "{71653BC0-1B42-4EB9-B0F4-78C8ABA8F27A}" }, "_inputs": [ { "_slotId": { "m_id": "{8D6F4EE5-EB2F-4671-ABCA-E8F588B8F51F}" } } ], "_outs": [ { "_slotId": { "m_id": "{6C10C7BF-AEB3-448B-A4A3-0ED3B56DB813}" }, "_name": "Ticket Created", "_outputs": [ { "_slotId": { "m_id": "{684BE347-8E40-4DDB-8280-3FAF70E1452C}" } } ], "_interfaceSourceId": "{0F000000-FD00-0000-4089-75CB2E000000}" } ], "_interfaceSourceId": "{B0451D01-8901-0000-0000-000089010000}" } ] } } } }, { "Id": { "id": 796057916327 }, "Name": "EBusEventHandler", "Components": { "Component_[2236170640449656192]": { "$type": "EBusEventHandler", "Id": 2236170640449656192, "Slots": [ { "id": { "m_id": "{5955356D-E101-434C-A687-11089DC3390F}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Connect", "toolTip": "Connect this event handler to the specified entity.", "Descriptor": { "ConnectionType": 1, "SlotType": 1 } }, { "id": { "m_id": "{9FCAA397-41F6-4E73-8D65-6CCC7F34F6A6}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Disconnect", "toolTip": "Disconnect this event handler.", "Descriptor": { "ConnectionType": 1, "SlotType": 1 } }, { "id": { "m_id": "{C2A534EC-128D-450B-A81C-B5039F3F292B}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "OnConnected", "toolTip": "Signaled when a connection has taken place.", "Descriptor": { "ConnectionType": 2, "SlotType": 1 } }, { "id": { "m_id": "{E7400D9B-C362-4102-983F-F431E0F4593F}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "OnDisconnected", "toolTip": "Signaled when this event handler is disconnected.", "Descriptor": { "ConnectionType": 2, "SlotType": 1 } }, { "id": { "m_id": "{FCCC3303-B0EA-4FE5-A557-AD10837CA594}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "OnFailure", "toolTip": "Signaled when it is not possible to connect this handler.", "Descriptor": { "ConnectionType": 2, "SlotType": 1 } }, { "id": { "m_id": "{2F33A656-43BD-492B-946B-9EF5868F260B}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "Source", "toolTip": "ID used to connect on a specific Event address (Type: EntityId)", "Descriptor": { "ConnectionType": 1, "SlotType": 2 }, "DataType": 1 }, { "id": { "m_id": "{6CE650F3-BF1C-4BF4-B2B8-38DEB09C5563}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "EntityId", "DisplayDataType": { "m_type": 1 }, "Descriptor": { "ConnectionType": 2, "SlotType": 2 }, "DataType": 1 }, { "id": { "m_id": "{4C78ED24-6652-4BE7-B21F-8E869BEB0F59}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "ExecutionSlot:OnEntityActivated", "Descriptor": { "ConnectionType": 2, "SlotType": 1 }, "IsLatent": true }, { "id": { "m_id": "{D616F33A-5F0F-4711-B241-92F9E9D1444A}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "EntityId", "DisplayDataType": { "m_type": 1 }, "Descriptor": { "ConnectionType": 2, "SlotType": 2 }, "DataType": 1 }, { "id": { "m_id": "{B1B26697-1A6E-4707-AA24-F97ED848F902}" }, "contracts": [ { "$type": "SlotTypeContract" } ], "slotName": "ExecutionSlot:OnEntityDeactivated", "Descriptor": { "ConnectionType": 2, "SlotType": 1 }, "IsLatent": true } ], "Datums": [ { "scriptCanvasType": { "m_type": 1 }, "isNullPointer": false, "$type": "EntityId", "value": { "id": 2901262558 }, "label": "Source" } ], "m_eventMap": [ { "Key": { "Value": 245425936 }, "Value": { "m_eventName": "OnEntityActivated", "m_eventId": { "Value": 245425936 }, "m_eventSlotId": { "m_id": "{4C78ED24-6652-4BE7-B21F-8E869BEB0F59}" }, "m_parameterSlotIds": [ { "m_id": "{6CE650F3-BF1C-4BF4-B2B8-38DEB09C5563}" } ], "m_numExpectedArguments": 1 } }, { "Key": { "Value": 4273369222 }, "Value": { "m_eventName": "OnEntityDeactivated", "m_eventId": { "Value": 4273369222 }, "m_eventSlotId": { "m_id": "{B1B26697-1A6E-4707-AA24-F97ED848F902}" }, "m_parameterSlotIds": [ { "m_id": "{D616F33A-5F0F-4711-B241-92F9E9D1444A}" } ], "m_numExpectedArguments": 1 } } ], "m_ebusName": "EntityBus", "m_busId": { "Value": 3358774020 } } } } ], "m_connections": [ { "Id": { "id": 800352883623 }, "Name": "srcEndpoint=(EntityBus Handler: ExecutionSlot:OnEntityActivated), destEndpoint=(CreateSpawnTicket: Create Ticket)", "Components": { "Component_[7972517058784087555]": { "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", "Id": 7972517058784087555, "sourceEndpoint": { "nodeId": { "id": 796057916327 }, "slotId": { "m_id": "{4C78ED24-6652-4BE7-B21F-8E869BEB0F59}" } }, "targetEndpoint": { "nodeId": { "id": 791762949031 }, "slotId": { "m_id": "{71653BC0-1B42-4EB9-B0F4-78C8ABA8F27A}" } } } } }, { "Id": { "id": 804647850919 }, "Name": "srcEndpoint=(CreateSpawnTicket: Ticket Created), destEndpoint=(Spawn: Request Spawn)", "Components": { "Component_[256290005671456656]": { "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", "Id": 256290005671456656, "sourceEndpoint": { "nodeId": { "id": 791762949031 }, "slotId": { "m_id": "{6C10C7BF-AEB3-448B-A4A3-0ED3B56DB813}" } }, "targetEndpoint": { "nodeId": { "id": 787467981735 }, "slotId": { "m_id": "{22EB0400-7BFB-49EF-9499-CB99F9B09463}" } } } } } ] }, "m_assetType": "{00000000-0000-0000-5E23-7E0603AAAB3F}", "versionData": { "_grammarVersion": 1, "_runtimeVersion": 1, "_fileVersion": 1 }, "m_variableCounter": 2, "GraphCanvasData": [ { "Key": { "id": 783173014439 }, "Value": { "ComponentData": { "{5F84B500-8C45-40D1-8EFC-A5306B241444}": { "$type": "SceneComponentSaveData", "ViewParams": { "AnchorX": 343.0, "AnchorY": 54.0 } } } } }, { "Key": { "id": 787467981735 }, "Value": { "ComponentData": { "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { "$type": "NodeSaveData" }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", "PaletteOverride": "DefaultNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ 1040.0, 220.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", "PersistentId": "{945EF99E-BAAE-4EB1-8F86-7B39FE0895C0}" } } } }, { "Key": { "id": 791762949031 }, "Value": { "ComponentData": { "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { "$type": "NodeSaveData" }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", "PaletteOverride": "DefaultNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ 440.0, 440.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", "PersistentId": "{B74EAF0F-592B-4B66-A4ED-65F7B87AA737}" } } } }, { "Key": { "id": 796057916327 }, "Value": { "ComponentData": { "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { "$type": "NodeSaveData" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ 100.0, 220.0 ] }, "{9E81C95F-89C0-4476-8E82-63CCC4E52E04}": { "$type": "EBusHandlerNodeDescriptorSaveData", "EventIds": [ { "Value": 245425936 } ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", "PersistentId": "{5FA221C0-BA44-4CA2-BD36-532BB668497A}" } } } } ], "StatisticsHelper": { "InstanceCounter": [ { "Key": 2970552779286763396, "Value": 1 }, { "Key": 5842116761103598202, "Value": 1 }, { "Key": 13474049605028069597, "Value": 1 } ] } }, "Component_[12370602893069185939]": { "$type": "EditorGraphVariableManagerComponent", "Id": 12370602893069185939, "m_variableData": { "m_nameVariableMap": [ { "Key": { "m_id": "{41E649ED-32B8-4E95-83DE-F598FC9573D8}" }, "Value": { "Datum": { "scriptCanvasType": { "m_type": 4, "m_azType": "{A96A5037-AD0D-43B6-9948-ED63438C4A52}" }, "isNullPointer": false, "$type": "AzFramework::Scripts::SpawnableScriptAssetRef", "value": { "asset": { "assetId": { "guid": "{1B471863-27FD-52E8-AC59-FEF478567F30}", "subId": 2464308127 }, "assetHint": "prefabs/testdata/spawnables/nested_sc_spawner.spawnable" } } }, "VariableId": { "m_id": "{41E649ED-32B8-4E95-83DE-F598FC9573D8}" }, "VariableName": "PrefabToSpawn" } }, { "Key": { "m_id": "{8F78F38D-D11F-4A13-B904-FEF421C82BF6}" }, "Value": { "Datum": { "scriptCanvasType": { "m_type": 4, "m_azType": "{BA62FF9A-A01E-4FEB-84C6-200881DF2B2B}" }, "isNullPointer": false, "$type": "AzFramework::EntitySpawnTicket" }, "VariableId": { "m_id": "{8F78F38D-D11F-4A13-B904-FEF421C82BF6}" }, "VariableName": "ActiveSpawnTicket" } } ] } } } } } }