diff --git a/AutomatedTesting/Levels/Physics/ScriptCanvas_CollisionEvents/ScriptCanvas_CollisionEvents.ly b/AutomatedTesting/Levels/Physics/ScriptCanvas_CollisionEvents/ScriptCanvas_CollisionEvents.ly index 6c70bbf067..8fcf2dcde2 100644 --- a/AutomatedTesting/Levels/Physics/ScriptCanvas_CollisionEvents/ScriptCanvas_CollisionEvents.ly +++ b/AutomatedTesting/Levels/Physics/ScriptCanvas_CollisionEvents/ScriptCanvas_CollisionEvents.ly @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c1b6f5e409a8358ad95b310473046ce1a2f2aa5f7e05d0c3396044aa52aa7f6d -size 9103 +oid sha256:d674eac2070ed0028ceff1e84692c9cf1f69db2192c2295b6d714670ccd50308 +size 8936 diff --git a/AutomatedTesting/Levels/Physics/ScriptCanvas_CollisionEvents/collision_events_script.scriptcanvas b/AutomatedTesting/Levels/Physics/ScriptCanvas_CollisionEvents/collision_events_script.scriptcanvas index a565c64b60..ce545a30b5 100644 --- a/AutomatedTesting/Levels/Physics/ScriptCanvas_CollisionEvents/collision_events_script.scriptcanvas +++ b/AutomatedTesting/Levels/Physics/ScriptCanvas_CollisionEvents/collision_events_script.scriptcanvas @@ -5,7 +5,7 @@ "ClassData": { "m_scriptCanvas": { "Id": { - "id": 70086661081986 + "id": 18841028265353 }, "Name": "collision_events_script", "Components": { @@ -16,7 +16,222 @@ "m_nodes": [ { "Id": { - "id": 70125315787650 + "id": 18896862840201 + }, + "Name": "SC-EventNode(On Collision Persist event)", + "Components": { + "Component_[11051578760533229880]": { + "$type": "AzEventHandler", + "Id": 11051578760533229880, + "Slots": [ + { + "id": { + "m_id": "{D60E85B8-F645-47F8-92BE-0A0251269168}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + { + "$type": "ConnectionLimitContract", + "limit": 1 + }, + { + "$type": "RestrictedNodeContract", + "m_nodeId": { + "id": 18866798069129 + } + } + ], + "slotName": "Connect", + "toolTip": "Connect the AZ Event to this AZ Event Handler.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{BFE76B23-D14A-4C0A-83B9-6BC9BB87E542}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Disconnect", + "toolTip": "Disconnect current AZ Event from this AZ Event Handler.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{D9A1AFC3-AEF9-4550-877D-D5C8BC460AB9}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "On Connected", + "toolTip": "Signaled when a connection has taken place.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{FB927B57-AC8B-4EE4-96F5-9F5712FFEF53}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "On Disconnected", + "toolTip": "Signaled when this event handler is disconnected.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{6B89E130-60D1-42A4-9C9C-679E84DD6389}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "OnEvent", + "toolTip": "Triggered when the AZ Event invokes Signal() function.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + }, + "IsLatent": true + }, + { + "id": { + "m_id": "{2D6BF58F-C430-4795-9470-D1C44EA23B9D}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Simulated Body Handle", + "DisplayDataType": { + "m_type": 4, + "m_azType": "{53C0CD3E-D0FC-5D90-9E9B-EF364D430B08}" + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{5DE43B16-4121-4CFF-8BA0-56099371A836}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Collision Event", + "DisplayDataType": { + "m_type": 4, + "m_azType": "{7602AA36-792C-4BDC-BDF8-AA16792151A3}" + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{1C7070F8-D281-414C-BF9B-D6B6B5F12926}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + { + "$type": "ConnectionLimitContract", + "limit": 1 + }, + { + "$type": "RestrictedNodeContract", + "m_nodeId": { + "id": 18866798069129 + } + } + ], + "slotName": "On Collision Persist event", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + } + ], + "Datums": [ + { + "scriptCanvasType": { + "m_type": 4, + "m_azType": "{4C19E257-F929-524E-80E3-C910C5F3E2D9}" + }, + "isNullPointer": true, + "label": "On Collision Persist event" + } + ], + "m_azEventEntry": { + "m_eventName": "On Collision Persist event", + "m_parameterSlotIds": [ + { + "m_id": "{2D6BF58F-C430-4795-9470-D1C44EA23B9D}" + }, + { + "m_id": "{5DE43B16-4121-4CFF-8BA0-56099371A836}" + }, + { + "m_id": "{2D6BF58F-C430-4795-9470-D1C44EA23B9D}" + }, + { + "m_id": "{5DE43B16-4121-4CFF-8BA0-56099371A836}" + } + ], + "m_parameterNames": [ + { + "m_id": "{2D6BF58F-C430-4795-9470-D1C44EA23B9D}" + }, + { + "m_id": "{5DE43B16-4121-4CFF-8BA0-56099371A836}" + }, + { + "m_id": "{2D6BF58F-C430-4795-9470-D1C44EA23B9D}" + }, + { + "m_id": "{5DE43B16-4121-4CFF-8BA0-56099371A836}" + } + ], + "m_eventSlotId": { + "m_id": "{1C7070F8-D281-414C-BF9B-D6B6B5F12926}" + } + } + } + } + }, + { + "Id": { + "id": 18939812513161 }, "Name": "SC-Node(Print)", "Components": { @@ -65,7 +280,7 @@ }, { "Id": { - "id": 70095251016578 + "id": 18849618199945 }, "Name": "SC-Node((NodeFunctionGenericMultiReturn)<{bool(const EntityId& )}* IsActiveTraits >)", "Components": { @@ -159,7 +374,7 @@ }, { "Id": { - "id": 70163970493314 + "id": 18871093036425 }, "Name": "SC-Node((NodeFunctionGenericMultiReturn)<{bool(const EntityId& )}* IsActiveTraits >)", "Components": { @@ -253,7 +468,7 @@ }, { "Id": { - "id": 70172560427906 + "id": 18931222578569 }, "Name": "SC-Node((NodeFunctionGenericMultiReturn)<{bool(const EntityId& )}* IsActiveTraits >)", "Components": { @@ -347,7 +562,7 @@ }, { "Id": { - "id": 70121020820354 + "id": 18909747742089 }, "Name": "SC Node(GetVariable)", "Components": { @@ -418,35 +633,25 @@ }, { "Id": { - "id": 70112430885762 + "id": 18901157807497 }, - "Name": "SC-EventNode(On Collision Begin event)", + "Name": "SC Node(GetVariable)", "Components": { - "Component_[14000580813563007620]": { - "$type": "AzEventHandler", - "Id": 14000580813563007620, + "Component_[142618354415180427]": { + "$type": "GetVariableNode", + "Id": 142618354415180427, "Slots": [ { "id": { - "m_id": "{74B54CB0-A72C-4A6A-ABB3-9EA6529DDF78}" + "m_id": "{245126A2-D7FE-4C59-BF8D-46F791EEE730}" }, "contracts": [ { "$type": "SlotTypeContract" - }, - { - "$type": "ConnectionLimitContract", - "limit": 1 - }, - { - "$type": "RestrictedNodeContract", - "m_nodeId": { - "id": 70142495656834 - } } ], - "slotName": "Connect", - "toolTip": "Connect the AZ Event to this AZ Event Handler.", + "slotName": "In", + "toolTip": "When signaled sends the property referenced by this node to a Data Output slot", "Descriptor": { "ConnectionType": 1, "SlotType": 1 @@ -454,222 +659,195 @@ }, { "id": { - "m_id": "{8DDBE14E-02C2-49A2-ABB1-47EC97B5D970}" + "m_id": "{DF9C6AFF-531F-4E74-80CC-1F6889A1CE9E}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "Disconnect", - "toolTip": "Disconnect current AZ Event from this AZ Event Handler.", + "slotName": "Out", + "toolTip": "Signaled after the referenced property has been pushed to the Data Output slot", "Descriptor": { - "ConnectionType": 1, + "ConnectionType": 2, "SlotType": 1 } }, { "id": { - "m_id": "{0EE06A10-EB10-4C5D-AB8F-D7B8B7A921E0}" + "m_id": "{6DDB4692-35F9-4570-B914-951F1FFAB089}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "On Connected", - "toolTip": "Signaled when a connection has taken place.", + "slotName": "EntityID", + "DisplayDataType": { + "m_type": 1 + }, "Descriptor": { "ConnectionType": 2, - "SlotType": 1 - } - }, + "SlotType": 2 + }, + "DataType": 1 + } + ], + "m_variableId": { + "m_id": "{79C630E7-2ED7-40E9-929D-6D88FC32ADD9}" + }, + "m_variableDataOutSlotId": { + "m_id": "{6DDB4692-35F9-4570-B914-951F1FFAB089}" + } + } + } + }, + { + "Id": { + "id": 18853913167241 + }, + "Name": "EBusEventHandler", + "Components": { + "Component_[16532525056787595195]": { + "$type": "EBusEventHandler", + "Id": 16532525056787595195, + "Slots": [ { "id": { - "m_id": "{8B0C1988-7783-42F5-A3C5-42184B5DC7FE}" + "m_id": "{528D022F-3510-4351-8978-2B5B9B91CC7E}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "On Disconnected", - "toolTip": "Signaled when this event handler is disconnected.", + "slotName": "Connect", + "toolTip": "Connect this event handler to the specified entity.", "Descriptor": { - "ConnectionType": 2, + "ConnectionType": 1, "SlotType": 1 } }, { "id": { - "m_id": "{E32049C5-FF99-4E74-91EC-D007B0D6EF7B}" + "m_id": "{99136E6F-622A-46D0-A7B7-A304B587DFDB}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "OnEvent", - "toolTip": "Triggered when the AZ Event invokes Signal() function.", + "slotName": "Disconnect", + "toolTip": "Disconnect this event handler.", "Descriptor": { - "ConnectionType": 2, + "ConnectionType": 1, "SlotType": 1 - }, - "IsLatent": true + } }, { "id": { - "m_id": "{B3D58CDB-A773-47CE-B06D-BA3CF619A8E3}" + "m_id": "{8CC6ECD6-A855-4466-AEB9-BB822F6D1F62}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "Simulated Body Handle", - "DisplayDataType": { - "m_type": 4, - "m_azType": "{53C0CD3E-D0FC-5D90-9E9B-EF364D430B08}" - }, + "slotName": "OnConnected", + "toolTip": "Signaled when a connection has taken place.", "Descriptor": { "ConnectionType": 2, - "SlotType": 2 - }, - "DataType": 1 + "SlotType": 1 + } }, { "id": { - "m_id": "{51A6844B-AD3E-48C3-8770-20E425CA125A}" + "m_id": "{EBFCFEBE-286E-4BAB-9E96-B85C6ED3E15A}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "Collision Event", - "DisplayDataType": { - "m_type": 4, - "m_azType": "{7602AA36-792C-4BDC-BDF8-AA16792151A3}" - }, + "slotName": "OnDisconnected", + "toolTip": "Signaled when this event handler is disconnected.", "Descriptor": { "ConnectionType": 2, - "SlotType": 2 - }, - "DataType": 1 + "SlotType": 1 + } }, { "id": { - "m_id": "{F7A6B1A7-EB72-45DE-8A87-7C6E36FCA2A3}" + "m_id": "{C3C7D5F3-362A-48F7-A743-6838ABAEFBB2}" }, "contracts": [ { "$type": "SlotTypeContract" - }, - null, + } + ], + "slotName": "OnFailure", + "toolTip": "Signaled when it is not possible to connect this handler.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{910C1C48-E747-4C9E-80BF-2A2862BC9118}" + }, + "contracts": [ { - "$type": "ConnectionLimitContract", - "limit": 1 + "$type": "SlotTypeContract" }, - { - "$type": "RestrictedNodeContract", - "m_nodeId": { - "id": 70142495656834 - } - } + null ], - "slotName": "On Collision Begin event", + "slotName": "Source", + "toolTip": "ID used to connect on a specific Event address (Type: EntityId)", "Descriptor": { "ConnectionType": 1, "SlotType": 2 }, "DataType": 1 - } - ], - "Datums": [ - {} - ], - "m_azEventEntry": { - "m_eventName": "On Collision Begin event", - "m_parameterSlotIds": [ - { - "m_id": "{B3D58CDB-A773-47CE-B06D-BA3CF619A8E3}" - }, - { - "m_id": "{51A6844B-AD3E-48C3-8770-20E425CA125A}" - }, - { - "m_id": "{B3D58CDB-A773-47CE-B06D-BA3CF619A8E3}" - }, - { - "m_id": "{51A6844B-AD3E-48C3-8770-20E425CA125A}" - } - ], - "m_parameterNames": [ - { - "m_id": "{B3D58CDB-A773-47CE-B06D-BA3CF619A8E3}" - }, - { - "m_id": "{51A6844B-AD3E-48C3-8770-20E425CA125A}" - }, - { - "m_id": "{B3D58CDB-A773-47CE-B06D-BA3CF619A8E3}" - }, - { - "m_id": "{51A6844B-AD3E-48C3-8770-20E425CA125A}" - } - ], - "m_eventSlotId": { - "m_id": "{F7A6B1A7-EB72-45DE-8A87-7C6E36FCA2A3}" - } - } - } - } - }, - { - "Id": { - "id": 70099545983874 - }, - "Name": "SC Node(GetVariable)", - "Components": { - "Component_[142618354415180427]": { - "$type": "GetVariableNode", - "Id": 142618354415180427, - "Slots": [ + }, { "id": { - "m_id": "{245126A2-D7FE-4C59-BF8D-46F791EEE730}" + "m_id": "{1EAAB3AC-9A45-4A1D-ACD5-7A079F2991FC}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "In", - "toolTip": "When signaled sends the property referenced by this node to a Data Output slot", + "slotName": "EntityID", + "DisplayDataType": { + "m_type": 1 + }, "Descriptor": { - "ConnectionType": 1, - "SlotType": 1 - } + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 }, { "id": { - "m_id": "{DF9C6AFF-531F-4E74-80CC-1F6889A1CE9E}" + "m_id": "{4B50FCC8-C542-42E4-B17C-BD56173F1A26}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "Out", - "toolTip": "Signaled after the referenced property has been pushed to the Data Output slot", + "slotName": "ExecutionSlot:OnEntityActivated", "Descriptor": { "ConnectionType": 2, "SlotType": 1 - } + }, + "IsLatent": true }, { "id": { - "m_id": "{6DDB4692-35F9-4570-B914-951F1FFAB089}" + "m_id": "{69BA1262-6657-4F5A-B81D-8BAD804E8BD9}" }, "contracts": [ { @@ -685,30 +863,99 @@ "SlotType": 2 }, "DataType": 1 + }, + { + "id": { + "m_id": "{3439A9D1-B3B2-427A-82B6-86F5B75AD12D}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "ExecutionSlot:OnEntityDeactivated", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + }, + "IsLatent": true } ], - "m_variableId": { - "m_id": "{79C630E7-2ED7-40E9-929D-6D88FC32ADD9}" - }, - "m_variableDataOutSlotId": { - "m_id": "{6DDB4692-35F9-4570-B914-951F1FFAB089}" + "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": "{4B50FCC8-C542-42E4-B17C-BD56173F1A26}" + }, + "m_parameterSlotIds": [ + { + "m_id": "{1EAAB3AC-9A45-4A1D-ACD5-7A079F2991FC}" + } + ], + "m_numExpectedArguments": 1 + } + }, + { + "Key": { + "Value": 4273369222 + }, + "Value": { + "m_eventName": "OnEntityDeactivated", + "m_eventId": { + "Value": 4273369222 + }, + "m_eventSlotId": { + "m_id": "{3439A9D1-B3B2-427A-82B6-86F5B75AD12D}" + }, + "m_parameterSlotIds": [ + { + "m_id": "{69BA1262-6657-4F5A-B81D-8BAD804E8BD9}" + } + ], + "m_numExpectedArguments": 1 + } + } + ], + "m_ebusName": "EntityBus", + "m_busId": { + "Value": 3358774020 } } } }, { "Id": { - "id": 70142495656834 + "id": 18875388003721 }, - "Name": "SC-Node(GetOnCollisionBeginEvent)", + "Name": "SC-Node(ActivateGameEntity)", "Components": { - "Component_[14536104846481825629]": { + "Component_[277081290396690505]": { "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", - "Id": 14536104846481825629, + "Id": 277081290396690505, "Slots": [ { "id": { - "m_id": "{C1CC691F-49A7-4348-89AD-F11BFBE3AFAE}" + "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" }, "contracts": [ { @@ -725,7 +972,7 @@ }, { "id": { - "m_id": "{88B3237D-3297-4837-A80A-19ECAB4B4D61}" + "m_id": "{53670F84-98ED-4559-A2EC-3D2285DBC8E3}" }, "contracts": [ { @@ -740,7 +987,7 @@ }, { "id": { - "m_id": "{5AD134C7-A8BC-4BE7-B815-68901BBEBE0D}" + "m_id": "{1904FF69-ECF6-47AC-9318-2EBDAA8A5485}" }, "contracts": [ { @@ -752,26 +999,6 @@ "ConnectionType": 2, "SlotType": 1 } - }, - { - "id": { - "m_id": "{FCF4B185-2AD4-42BD-A304-B36B437CEA61}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "Result: Event const CollisionEvent& >", - "DisplayDataType": { - "m_type": 4, - "m_azType": "{4C19E257-F929-524E-80E3-C910C5F3E2D9}" - }, - "Descriptor": { - "ConnectionType": 2, - "SlotType": 2 - }, - "DataType": 1 } ], "Datums": [ @@ -787,53 +1014,53 @@ "label": "EntityID: 0" } ], - "methodType": 2, - "methodName": "GetOnCollisionBeginEvent", - "className": "SimulatedBody", + "methodType": 0, + "methodName": "ActivateGameEntity", + "className": "GameEntityContextRequestBus", "resultSlotIDs": [ {} ], - "prettyClassName": "SimulatedBody" + "prettyClassName": "GameEntityContextRequestBus" } } }, { "Id": { - "id": 70159675526018 + "id": 18888272905609 }, - "Name": "EBusEventHandler", + "Name": "SC-Node(ActivateGameEntity)", "Components": { - "Component_[16532525056787595195]": { - "$type": "EBusEventHandler", - "Id": 16532525056787595195, + "Component_[277081290396690505]": { + "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", + "Id": 277081290396690505, "Slots": [ { "id": { - "m_id": "{528D022F-3510-4351-8978-2B5B9B91CC7E}" + "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" }, "contracts": [ { "$type": "SlotTypeContract" - } + }, + null ], - "slotName": "Connect", - "toolTip": "Connect this event handler to the specified entity.", + "slotName": "EntityID: 0", "Descriptor": { "ConnectionType": 1, - "SlotType": 1 - } + "SlotType": 2 + }, + "DataType": 1 }, { "id": { - "m_id": "{99136E6F-622A-46D0-A7B7-A304B587DFDB}" + "m_id": "{53670F84-98ED-4559-A2EC-3D2285DBC8E3}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "Disconnect", - "toolTip": "Disconnect this event handler.", + "slotName": "In", "Descriptor": { "ConnectionType": 1, "SlotType": 1 @@ -841,55 +1068,56 @@ }, { "id": { - "m_id": "{8CC6ECD6-A855-4466-AEB9-BB822F6D1F62}" + "m_id": "{1904FF69-ECF6-47AC-9318-2EBDAA8A5485}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "OnConnected", - "toolTip": "Signaled when a connection has taken place.", + "slotName": "Out", "Descriptor": { "ConnectionType": 2, "SlotType": 1 } - }, + } + ], + "Datums": [ { - "id": { - "m_id": "{EBFCFEBE-286E-4BAB-9E96-B85C6ED3E15A}" + "scriptCanvasType": { + "m_type": 1 }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "OnDisconnected", - "toolTip": "Signaled when this event handler is disconnected.", - "Descriptor": { - "ConnectionType": 2, - "SlotType": 1 - } - }, - { - "id": { - "m_id": "{C3C7D5F3-362A-48F7-A743-6838ABAEFBB2}" + "isNullPointer": false, + "$type": "EntityId", + "value": { + "id": 2901262558 }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "OnFailure", - "toolTip": "Signaled when it is not possible to connect this handler.", - "Descriptor": { - "ConnectionType": 2, - "SlotType": 1 - } - }, + "label": "EntityID: 0" + } + ], + "methodType": 0, + "methodName": "ActivateGameEntity", + "className": "GameEntityContextRequestBus", + "resultSlotIDs": [ + {} + ], + "prettyClassName": "GameEntityContextRequestBus" + } + } + }, + { + "Id": { + "id": 18914042709385 + }, + "Name": "SC-Node(ActivateGameEntity)", + "Components": { + "Component_[277081290396690505]": { + "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", + "Id": 277081290396690505, + "Slots": [ { "id": { - "m_id": "{910C1C48-E747-4C9E-80BF-2A2862BC9118}" + "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" }, "contracts": [ { @@ -897,8 +1125,7 @@ }, null ], - "slotName": "Source", - "toolTip": "ID used to connect on a specific Event address (Type: EntityId)", + "slotName": "EntityID: 0", "Descriptor": { "ConnectionType": 1, "SlotType": 2 @@ -907,73 +1134,33 @@ }, { "id": { - "m_id": "{1EAAB3AC-9A45-4A1D-ACD5-7A079F2991FC}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "EntityID", - "DisplayDataType": { - "m_type": 1 - }, - "Descriptor": { - "ConnectionType": 2, - "SlotType": 2 - }, - "DataType": 1 - }, - { - "id": { - "m_id": "{4B50FCC8-C542-42E4-B17C-BD56173F1A26}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "ExecutionSlot:OnEntityActivated", - "Descriptor": { - "ConnectionType": 2, - "SlotType": 1 - }, - "IsLatent": true - }, - { - "id": { - "m_id": "{69BA1262-6657-4F5A-B81D-8BAD804E8BD9}" + "m_id": "{53670F84-98ED-4559-A2EC-3D2285DBC8E3}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "EntityID", - "DisplayDataType": { - "m_type": 1 - }, + "slotName": "In", "Descriptor": { - "ConnectionType": 2, - "SlotType": 2 - }, - "DataType": 1 + "ConnectionType": 1, + "SlotType": 1 + } }, { "id": { - "m_id": "{3439A9D1-B3B2-427A-82B6-86F5B75AD12D}" + "m_id": "{1904FF69-ECF6-47AC-9318-2EBDAA8A5485}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "ExecutionSlot:OnEntityDeactivated", + "slotName": "Out", "Descriptor": { "ConnectionType": 2, "SlotType": 1 - }, - "IsLatent": true + } } ], "Datums": [ @@ -986,77 +1173,37 @@ "value": { "id": 2901262558 }, - "label": "Source" + "label": "EntityID: 0" } ], - "m_eventMap": [ - { - "Key": { - "Value": 245425936 - }, - "Value": { - "m_eventName": "OnEntityActivated", - "m_eventId": { - "Value": 245425936 - }, - "m_eventSlotId": { - "m_id": "{4B50FCC8-C542-42E4-B17C-BD56173F1A26}" - }, - "m_parameterSlotIds": [ - { - "m_id": "{1EAAB3AC-9A45-4A1D-ACD5-7A079F2991FC}" - } - ], - "m_numExpectedArguments": 1 - } - }, - { - "Key": { - "Value": 4273369222 - }, - "Value": { - "m_eventName": "OnEntityDeactivated", - "m_eventId": { - "Value": 4273369222 - }, - "m_eventSlotId": { - "m_id": "{3439A9D1-B3B2-427A-82B6-86F5B75AD12D}" - }, - "m_parameterSlotIds": [ - { - "m_id": "{69BA1262-6657-4F5A-B81D-8BAD804E8BD9}" - } - ], - "m_numExpectedArguments": 1 - } - } + "methodType": 0, + "methodName": "ActivateGameEntity", + "className": "GameEntityContextRequestBus", + "resultSlotIDs": [ + {} ], - "m_ebusName": "EntityBus", - "m_busId": { - "Value": 3358774020 - } + "prettyClassName": "GameEntityContextRequestBus" } } }, { "Id": { - "id": 70168265460610 + "id": 18944107480457 }, - "Name": "SC-Node(GetOnCollisionPersistEvent)", + "Name": "SC-Node(GetOnCollisionEndEvent)", "Components": { - "Component_[2456924078822417742]": { + "Component_[4035501780545896984]": { "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", - "Id": 2456924078822417742, + "Id": 4035501780545896984, "Slots": [ { "id": { - "m_id": "{76C563E8-85C7-4E2F-A09A-9D982064F966}" + "m_id": "{76E6B371-B7EF-43E6-BDBE-8BEB7A6CB444}" }, "contracts": [ { "$type": "SlotTypeContract" - }, - null + } ], "slotName": "EntityID: 0", "Descriptor": { @@ -1067,7 +1214,7 @@ }, { "id": { - "m_id": "{7AE56C6B-CF55-4FC7-AA96-E5845B406017}" + "m_id": "{3933A5FE-5430-41E9-AE89-39DBF93EE427}" }, "contracts": [ { @@ -1082,7 +1229,7 @@ }, { "id": { - "m_id": "{8A08ADFB-F581-40F8-B900-A5A968A11F6D}" + "m_id": "{1F68015F-AB0F-4A63-8FF3-E4EB3EE000C9}" }, "contracts": [ { @@ -1097,7 +1244,7 @@ }, { "id": { - "m_id": "{79F0D577-9326-4334-A996-74E400870874}" + "m_id": "{CBF241C4-DB7C-4DCA-AD01-AA806F28AA1A}" }, "contracts": [ { @@ -1130,34 +1277,38 @@ } ], "methodType": 2, - "methodName": "GetOnCollisionPersistEvent", + "methodName": "GetOnCollisionEndEvent", "className": "SimulatedBody", "resultSlotIDs": [ {} ], + "inputSlots": [ + { + "m_id": "{76E6B371-B7EF-43E6-BDBE-8BEB7A6CB444}" + } + ], "prettyClassName": "SimulatedBody" } } }, { "Id": { - "id": 70090956049282 + "id": 18866798069129 }, - "Name": "SC-Node(ActivateGameEntity)", + "Name": "SC-Node(GetOnCollisionPersistEvent)", "Components": { - "Component_[277081290396690505]": { + "Component_[4924826946960882301]": { "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", - "Id": 277081290396690505, + "Id": 4924826946960882301, "Slots": [ { "id": { - "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" + "m_id": "{DA0047B5-620F-49A9-9322-DDCE6DFF5B69}" }, "contracts": [ { "$type": "SlotTypeContract" - }, - null + } ], "slotName": "EntityID: 0", "Descriptor": { @@ -1168,7 +1319,7 @@ }, { "id": { - "m_id": "{53670F84-98ED-4559-A2EC-3D2285DBC8E3}" + "m_id": "{3EE67098-3620-40AE-9463-4812E39075B9}" }, "contracts": [ { @@ -1183,7 +1334,7 @@ }, { "id": { - "m_id": "{1904FF69-ECF6-47AC-9318-2EBDAA8A5485}" + "m_id": "{FF7196F6-D599-44FC-8481-9DBE522529DF}" }, "contracts": [ { @@ -1195,6 +1346,26 @@ "ConnectionType": 2, "SlotType": 1 } + }, + { + "id": { + "m_id": "{79056EFB-B34F-4702-B206-C9400F3408D6}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Result: Event const CollisionEvent& >", + "DisplayDataType": { + "m_type": 4, + "m_azType": "{4C19E257-F929-524E-80E3-C910C5F3E2D9}" + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 } ], "Datums": [ @@ -1210,35 +1381,39 @@ "label": "EntityID: 0" } ], - "methodType": 0, - "methodName": "ActivateGameEntity", - "className": "GameEntityContextRequestBus", + "methodType": 2, + "methodName": "GetOnCollisionPersistEvent", + "className": "SimulatedBody", "resultSlotIDs": [ {} ], - "prettyClassName": "GameEntityContextRequestBus" + "inputSlots": [ + { + "m_id": "{DA0047B5-620F-49A9-9322-DDCE6DFF5B69}" + } + ], + "prettyClassName": "SimulatedBody" } } }, { "Id": { - "id": 70129610754946 + "id": 18845323232649 }, - "Name": "SC-Node(ActivateGameEntity)", + "Name": "SC-Node(GetOnCollisionBeginEvent)", "Components": { - "Component_[277081290396690505]": { + "Component_[6029479490625241424]": { "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", - "Id": 277081290396690505, + "Id": 6029479490625241424, "Slots": [ { "id": { - "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" + "m_id": "{6B8EFFB6-8208-4BCB-BA1B-221A215AC0E0}" }, "contracts": [ { "$type": "SlotTypeContract" - }, - null + } ], "slotName": "EntityID: 0", "Descriptor": { @@ -1249,7 +1424,7 @@ }, { "id": { - "m_id": "{53670F84-98ED-4559-A2EC-3D2285DBC8E3}" + "m_id": "{ADA8C93D-8987-4537-99CD-A96986C8BF74}" }, "contracts": [ { @@ -1264,7 +1439,7 @@ }, { "id": { - "m_id": "{1904FF69-ECF6-47AC-9318-2EBDAA8A5485}" + "m_id": "{4C7050D8-46F3-4E72-865E-8F2897430750}" }, "contracts": [ { @@ -1276,6 +1451,26 @@ "ConnectionType": 2, "SlotType": 1 } + }, + { + "id": { + "m_id": "{B647ABD6-B8B1-45CB-ACF4-495E416BB744}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Result: Event const CollisionEvent& >", + "DisplayDataType": { + "m_type": 4, + "m_azType": "{4C19E257-F929-524E-80E3-C910C5F3E2D9}" + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 } ], "Datums": [ @@ -1291,53 +1486,68 @@ "label": "EntityID: 0" } ], - "methodType": 0, - "methodName": "ActivateGameEntity", - "className": "GameEntityContextRequestBus", + "methodType": 2, + "methodName": "GetOnCollisionBeginEvent", + "className": "SimulatedBody", "resultSlotIDs": [ {} ], - "prettyClassName": "GameEntityContextRequestBus" + "inputSlots": [ + { + "m_id": "{6B8EFFB6-8208-4BCB-BA1B-221A215AC0E0}" + } + ], + "prettyClassName": "SimulatedBody" } } }, { "Id": { - "id": 70176855395202 + "id": 18905452774793 }, - "Name": "SC-Node(ActivateGameEntity)", + "Name": "SC-EventNode(On Collision Begin event)", "Components": { - "Component_[277081290396690505]": { - "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", - "Id": 277081290396690505, + "Component_[7324959113754460428]": { + "$type": "AzEventHandler", + "Id": 7324959113754460428, "Slots": [ { "id": { - "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" + "m_id": "{C3576303-C50B-4466-B3C1-A96F40F0B494}" }, "contracts": [ { "$type": "SlotTypeContract" }, - null + { + "$type": "ConnectionLimitContract", + "limit": 1 + }, + { + "$type": "RestrictedNodeContract", + "m_nodeId": { + "id": 18845323232649 + } + } ], - "slotName": "EntityID: 0", + "slotName": "Connect", + "toolTip": "Connect the AZ Event to this AZ Event Handler.", "Descriptor": { "ConnectionType": 1, - "SlotType": 2 - }, - "DataType": 1 + "SlotType": 1 + } }, { "id": { - "m_id": "{53670F84-98ED-4559-A2EC-3D2285DBC8E3}" + "m_id": "{CB06AA39-2756-413B-863E-07A228FAEC7B}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "In", + "slotName": "Disconnect", + "toolTip": "Disconnect current AZ Event from this AZ Event Handler.", "Descriptor": { "ConnectionType": 1, "SlotType": 1 @@ -1345,116 +1555,115 @@ }, { "id": { - "m_id": "{1904FF69-ECF6-47AC-9318-2EBDAA8A5485}" + "m_id": "{4A0BBEC7-22E2-4F4B-A8BF-251A69B33CC3}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "Out", + "slotName": "On Connected", + "toolTip": "Signaled when a connection has taken place.", "Descriptor": { "ConnectionType": 2, "SlotType": 1 } - } - ], - "Datums": [ + }, { - "scriptCanvasType": { - "m_type": 1 - }, - "isNullPointer": false, - "$type": "EntityId", - "value": { - "id": 2901262558 + "id": { + "m_id": "{2EFD7225-D076-46E0-A998-E1236986A2AD}" }, - "label": "EntityID: 0" - } - ], - "methodType": 0, - "methodName": "ActivateGameEntity", - "className": "GameEntityContextRequestBus", - "resultSlotIDs": [ - {} - ], - "prettyClassName": "GameEntityContextRequestBus" - } - } - }, - { - "Id": { - "id": 70133905722242 - }, - "Name": "SC-Node(GetOnCollisionEndEvent)", - "Components": { - "Component_[6024679188177357420]": { - "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", - "Id": 6024679188177357420, - "Slots": [ + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "On Disconnected", + "toolTip": "Signaled when this event handler is disconnected.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, { "id": { - "m_id": "{4C021C78-C51F-40AD-8D0C-E912A7216BEC}" + "m_id": "{FDC1C72B-2C39-43BA-87B4-2E88D1C2F82A}" }, "contracts": [ { "$type": "SlotTypeContract" - }, - null + } ], - "slotName": "EntityID: 0", + "slotName": "OnEvent", + "toolTip": "Triggered when the AZ Event invokes Signal() function.", "Descriptor": { - "ConnectionType": 1, - "SlotType": 2 + "ConnectionType": 2, + "SlotType": 1 }, - "DataType": 1 + "IsLatent": true }, { "id": { - "m_id": "{F0E14922-5337-4F26-91ED-E23E557B8723}" + "m_id": "{E604218A-3CEF-4B0D-9028-5CF64C814C0B}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "In", - "Descriptor": { - "ConnectionType": 1, - "SlotType": 1 - } + "slotName": "Simulated Body Handle", + "DisplayDataType": { + "m_type": 4, + "m_azType": "{53C0CD3E-D0FC-5D90-9E9B-EF364D430B08}" + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 }, { "id": { - "m_id": "{84128820-5F2E-497F-9B13-A262484DE323}" + "m_id": "{1B8B8A0A-6ABF-4660-932E-E2D62FBB238F}" }, "contracts": [ { "$type": "SlotTypeContract" } ], - "slotName": "Out", + "slotName": "Collision Event", + "DisplayDataType": { + "m_type": 4, + "m_azType": "{7602AA36-792C-4BDC-BDF8-AA16792151A3}" + }, "Descriptor": { "ConnectionType": 2, - "SlotType": 1 - } + "SlotType": 2 + }, + "DataType": 1 }, { "id": { - "m_id": "{B825CA1B-36A9-4634-8D66-0C510EC4D4E8}" + "m_id": "{D4CACFC7-0F7B-4311-9125-D6624D302C50}" }, "contracts": [ { "$type": "SlotTypeContract" + }, + { + "$type": "ConnectionLimitContract", + "limit": 1 + }, + { + "$type": "RestrictedNodeContract", + "m_nodeId": { + "id": 18845323232649 + } } ], - "slotName": "Result: Event const CollisionEvent& >", - "DisplayDataType": { - "m_type": 4, - "m_azType": "{4C19E257-F929-524E-80E3-C910C5F3E2D9}" - }, + "slotName": "On Collision Begin event", "Descriptor": { - "ConnectionType": 2, + "ConnectionType": 1, "SlotType": 2 }, "DataType": 1 @@ -1463,39 +1672,63 @@ "Datums": [ { "scriptCanvasType": { - "m_type": 1 - }, - "isNullPointer": false, - "$type": "EntityId", - "value": { - "id": 2901262558 + "m_type": 4, + "m_azType": "{4C19E257-F929-524E-80E3-C910C5F3E2D9}" }, - "label": "EntityID: 0" + "isNullPointer": true, + "label": "On Collision Begin event" } ], - "methodType": 2, - "methodName": "GetOnCollisionEndEvent", - "className": "SimulatedBody", - "resultSlotIDs": [ - {} - ], - "prettyClassName": "SimulatedBody" + "m_azEventEntry": { + "m_eventName": "On Collision Begin event", + "m_parameterSlotIds": [ + { + "m_id": "{E604218A-3CEF-4B0D-9028-5CF64C814C0B}" + }, + { + "m_id": "{1B8B8A0A-6ABF-4660-932E-E2D62FBB238F}" + }, + { + "m_id": "{E604218A-3CEF-4B0D-9028-5CF64C814C0B}" + }, + { + "m_id": "{1B8B8A0A-6ABF-4660-932E-E2D62FBB238F}" + } + ], + "m_parameterNames": [ + { + "m_id": "{E604218A-3CEF-4B0D-9028-5CF64C814C0B}" + }, + { + "m_id": "{1B8B8A0A-6ABF-4660-932E-E2D62FBB238F}" + }, + { + "m_id": "{E604218A-3CEF-4B0D-9028-5CF64C814C0B}" + }, + { + "m_id": "{1B8B8A0A-6ABF-4660-932E-E2D62FBB238F}" + } + ], + "m_eventSlotId": { + "m_id": "{D4CACFC7-0F7B-4311-9125-D6624D302C50}" + } + } } } }, { "Id": { - "id": 70181150362498 + "id": 18918337676681 }, - "Name": "SC-EventNode(On Collision Persist event)", + "Name": "SC-EventNode(On Collision End event)", "Components": { - "Component_[6434307319231468785]": { + "Component_[7576015398665994859]": { "$type": "AzEventHandler", - "Id": 6434307319231468785, + "Id": 7576015398665994859, "Slots": [ { "id": { - "m_id": "{EB9CE3A4-B8A4-4436-9E3C-026580D17AC3}" + "m_id": "{63E9373E-95EC-407F-ACED-A5D50598A0D9}" }, "contracts": [ { @@ -1508,7 +1741,7 @@ { "$type": "RestrictedNodeContract", "m_nodeId": { - "id": 70168265460610 + "id": 18944107480457 } } ], @@ -1521,7 +1754,7 @@ }, { "id": { - "m_id": "{E5E8BE86-5B33-452C-BC59-FE4A6482048E}" + "m_id": "{5DF49BC4-1EFB-4312-8844-1BCF61E96610}" }, "contracts": [ { @@ -1537,7 +1770,7 @@ }, { "id": { - "m_id": "{FBAFC668-BD77-4ABB-8B93-E030D02DF348}" + "m_id": "{48AB5D80-6670-44CC-B38B-E15CDF47420D}" }, "contracts": [ { @@ -1553,7 +1786,7 @@ }, { "id": { - "m_id": "{D37C1BFC-8EC1-4C8E-B6C3-FC036891A7ED}" + "m_id": "{6C053A9E-1317-44A4-826D-79B27C6D8A5A}" }, "contracts": [ { @@ -1569,7 +1802,7 @@ }, { "id": { - "m_id": "{1A994B40-F1C6-4F60-9F44-4CE42732554C}" + "m_id": "{DFF1C200-D219-4959-8E01-2BD77B973C40}" }, "contracts": [ { @@ -1586,7 +1819,7 @@ }, { "id": { - "m_id": "{7C28872F-1A80-496F-9D34-467A80D7B4EF}" + "m_id": "{E316BB0C-7C7A-480F-BEFD-6CAEAC01C0D1}" }, "contracts": [ { @@ -1606,7 +1839,7 @@ }, { "id": { - "m_id": "{0A68E758-7230-4202-A54E-EC7BDA2BE643}" + "m_id": "{868EF452-C945-4EAA-990A-CC4998AD1B46}" }, "contracts": [ { @@ -1626,13 +1859,12 @@ }, { "id": { - "m_id": "{210423A5-D203-4C26-9B62-2B7DBA3320BD}" + "m_id": "{AF5C00D0-E405-4350-B4B2-0B7FB2CDB410}" }, "contracts": [ { "$type": "SlotTypeContract" }, - null, { "$type": "ConnectionLimitContract", "limit": 1 @@ -1640,11 +1872,11 @@ { "$type": "RestrictedNodeContract", "m_nodeId": { - "id": 70168265460610 + "id": 18944107480457 } } ], - "slotName": "On Collision Persist event", + "slotName": "On Collision End event", "Descriptor": { "ConnectionType": 1, "SlotType": 2 @@ -1653,40 +1885,47 @@ } ], "Datums": [ - {} + { + "scriptCanvasType": { + "m_type": 4, + "m_azType": "{4C19E257-F929-524E-80E3-C910C5F3E2D9}" + }, + "isNullPointer": true, + "label": "On Collision End event" + } ], "m_azEventEntry": { - "m_eventName": "On Collision Persist event", + "m_eventName": "On Collision End event", "m_parameterSlotIds": [ { - "m_id": "{7C28872F-1A80-496F-9D34-467A80D7B4EF}" + "m_id": "{E316BB0C-7C7A-480F-BEFD-6CAEAC01C0D1}" }, { - "m_id": "{0A68E758-7230-4202-A54E-EC7BDA2BE643}" + "m_id": "{868EF452-C945-4EAA-990A-CC4998AD1B46}" }, { - "m_id": "{7C28872F-1A80-496F-9D34-467A80D7B4EF}" + "m_id": "{E316BB0C-7C7A-480F-BEFD-6CAEAC01C0D1}" }, { - "m_id": "{0A68E758-7230-4202-A54E-EC7BDA2BE643}" + "m_id": "{868EF452-C945-4EAA-990A-CC4998AD1B46}" } ], "m_parameterNames": [ { - "m_id": "{7C28872F-1A80-496F-9D34-467A80D7B4EF}" + "m_id": "{E316BB0C-7C7A-480F-BEFD-6CAEAC01C0D1}" }, { - "m_id": "{0A68E758-7230-4202-A54E-EC7BDA2BE643}" + "m_id": "{868EF452-C945-4EAA-990A-CC4998AD1B46}" }, { - "m_id": "{7C28872F-1A80-496F-9D34-467A80D7B4EF}" + "m_id": "{E316BB0C-7C7A-480F-BEFD-6CAEAC01C0D1}" }, { - "m_id": "{0A68E758-7230-4202-A54E-EC7BDA2BE643}" + "m_id": "{868EF452-C945-4EAA-990A-CC4998AD1B46}" } ], "m_eventSlotId": { - "m_id": "{210423A5-D203-4C26-9B62-2B7DBA3320BD}" + "m_id": "{AF5C00D0-E405-4350-B4B2-0B7FB2CDB410}" } } } @@ -1694,7 +1933,7 @@ }, { "Id": { - "id": 70103840951170 + "id": 18892567872905 }, "Name": "SC-Node(DeactivateGameEntity)", "Components": { @@ -1775,7 +2014,7 @@ }, { "Id": { - "id": 70146790624130 + "id": 18926927611273 }, "Name": "SC-Node(DeactivateGameEntity)", "Components": { @@ -1856,7 +2095,7 @@ }, { "Id": { - "id": 70151085591426 + "id": 18935517545865 }, "Name": "SC-Node(DeactivateGameEntity)", "Components": { @@ -1905,248 +2144,39 @@ "$type": "SlotTypeContract" } ], - "slotName": "Out", - "Descriptor": { - "ConnectionType": 2, - "SlotType": 1 - } - } - ], - "Datums": [ - { - "scriptCanvasType": { - "m_type": 1 - }, - "isNullPointer": false, - "$type": "EntityId", - "value": { - "id": 2901262558 - }, - "label": "EntityID: 0" - } - ], - "methodType": 0, - "methodName": "DeactivateGameEntity", - "className": "GameEntityContextRequestBus", - "resultSlotIDs": [ - {} - ], - "prettyClassName": "GameEntityContextRequestBus" - } - } - }, - { - "Id": { - "id": 70185445329794 - }, - "Name": "SC-EventNode(On Collision End event)", - "Components": { - "Component_[8849170053396419306]": { - "$type": "AzEventHandler", - "Id": 8849170053396419306, - "Slots": [ - { - "id": { - "m_id": "{5F5A4D6A-50EF-4561-B5D3-F8CF1C4530F6}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - }, - { - "$type": "ConnectionLimitContract", - "limit": 1 - }, - { - "$type": "RestrictedNodeContract", - "m_nodeId": { - "id": 70133905722242 - } - } - ], - "slotName": "Connect", - "toolTip": "Connect the AZ Event to this AZ Event Handler.", - "Descriptor": { - "ConnectionType": 1, - "SlotType": 1 - } - }, - { - "id": { - "m_id": "{76FBE35A-BD29-4A8D-8B6E-AC6A2AD2306B}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "Disconnect", - "toolTip": "Disconnect current AZ Event from this AZ Event Handler.", - "Descriptor": { - "ConnectionType": 1, - "SlotType": 1 - } - }, - { - "id": { - "m_id": "{2E933E93-BD7E-4B9D-A9F5-E1A15995E00B}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "On Connected", - "toolTip": "Signaled when a connection has taken place.", - "Descriptor": { - "ConnectionType": 2, - "SlotType": 1 - } - }, - { - "id": { - "m_id": "{1773DFC3-FCF8-43C6-8CBC-B2457A05EFD6}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "On Disconnected", - "toolTip": "Signaled when this event handler is disconnected.", - "Descriptor": { - "ConnectionType": 2, - "SlotType": 1 - } - }, - { - "id": { - "m_id": "{FFBDBAC4-AF71-443C-BD6C-6C9E6BFAD858}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "OnEvent", - "toolTip": "Triggered when the AZ Event invokes Signal() function.", - "Descriptor": { - "ConnectionType": 2, - "SlotType": 1 - }, - "IsLatent": true - }, - { - "id": { - "m_id": "{785405C8-1F85-4C9C-8ABE-C47A9A801BE3}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "Simulated Body Handle", - "DisplayDataType": { - "m_type": 4, - "m_azType": "{53C0CD3E-D0FC-5D90-9E9B-EF364D430B08}" - }, - "Descriptor": { - "ConnectionType": 2, - "SlotType": 2 - }, - "DataType": 1 - }, - { - "id": { - "m_id": "{734C7A25-3E8A-4E3E-8CB5-E2F3383A3E18}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - } - ], - "slotName": "Collision Event", - "DisplayDataType": { - "m_type": 4, - "m_azType": "{7602AA36-792C-4BDC-BDF8-AA16792151A3}" - }, - "Descriptor": { - "ConnectionType": 2, - "SlotType": 2 - }, - "DataType": 1 - }, - { - "id": { - "m_id": "{BBC0A5CC-0C89-47E1-BDEE-2F21BF6053DC}" - }, - "contracts": [ - { - "$type": "SlotTypeContract" - }, - null, - { - "$type": "ConnectionLimitContract", - "limit": 1 - }, - { - "$type": "RestrictedNodeContract", - "m_nodeId": { - "id": 70133905722242 - } - } - ], - "slotName": "On Collision End event", + "slotName": "Out", "Descriptor": { - "ConnectionType": 1, - "SlotType": 2 - }, - "DataType": 1 + "ConnectionType": 2, + "SlotType": 1 + } } ], "Datums": [ - {} - ], - "m_azEventEntry": { - "m_eventName": "On Collision End event", - "m_parameterSlotIds": [ - { - "m_id": "{785405C8-1F85-4C9C-8ABE-C47A9A801BE3}" - }, - { - "m_id": "{734C7A25-3E8A-4E3E-8CB5-E2F3383A3E18}" - }, - { - "m_id": "{785405C8-1F85-4C9C-8ABE-C47A9A801BE3}" - }, - { - "m_id": "{734C7A25-3E8A-4E3E-8CB5-E2F3383A3E18}" - } - ], - "m_parameterNames": [ - { - "m_id": "{785405C8-1F85-4C9C-8ABE-C47A9A801BE3}" - }, - { - "m_id": "{734C7A25-3E8A-4E3E-8CB5-E2F3383A3E18}" + { + "scriptCanvasType": { + "m_type": 1 }, - { - "m_id": "{785405C8-1F85-4C9C-8ABE-C47A9A801BE3}" + "isNullPointer": false, + "$type": "EntityId", + "value": { + "id": 2901262558 }, - { - "m_id": "{734C7A25-3E8A-4E3E-8CB5-E2F3383A3E18}" - } - ], - "m_eventSlotId": { - "m_id": "{BBC0A5CC-0C89-47E1-BDEE-2F21BF6053DC}" + "label": "EntityID: 0" } - } + ], + "methodType": 0, + "methodName": "DeactivateGameEntity", + "className": "GameEntityContextRequestBus", + "resultSlotIDs": [ + {} + ], + "prettyClassName": "GameEntityContextRequestBus" } } }, { "Id": { - "id": 70108135918466 + "id": 18862503101833 }, "Name": "SC-Node(Gate)", "Components": { @@ -2237,7 +2267,7 @@ }, { "Id": { - "id": 70116725853058 + "id": 18883977938313 }, "Name": "SC-Node(Gate)", "Components": { @@ -2328,7 +2358,7 @@ }, { "Id": { - "id": 70189740297090 + "id": 18922632643977 }, "Name": "SC-Node(Gate)", "Components": { @@ -2419,7 +2449,7 @@ }, { "Id": { - "id": 70138200689538 + "id": 18858208134537 }, "Name": "SC-Node(Print)", "Components": { @@ -2468,7 +2498,7 @@ }, { "Id": { - "id": 70155380558722 + "id": 18879682971017 }, "Name": "SC Node(GetVariable)", "Components": { @@ -2541,7 +2571,7 @@ "m_connections": [ { "Id": { - "id": 70194035264386 + "id": 18948402447753 }, "Name": "srcEndpoint=(IsActive: Result: Boolean), destEndpoint=(If: Condition)", "Components": { @@ -2550,7 +2580,7 @@ "Id": 8790567172666668723, "sourceEndpoint": { "nodeId": { - "id": 70163970493314 + "id": 18871093036425 }, "slotId": { "m_id": "{14EE86BB-E7E2-4210-B5ED-8F543D82F66C}" @@ -2558,7 +2588,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70116725853058 + "id": 18883977938313 }, "slotId": { "m_id": "{3C9FBBC2-3934-4C35-B959-9E26F93AB525}" @@ -2569,7 +2599,7 @@ }, { "Id": { - "id": 70198330231682 + "id": 18952697415049 }, "Name": "srcEndpoint=(IsActive: Out), destEndpoint=(If: In)", "Components": { @@ -2578,7 +2608,7 @@ "Id": 2434331826651875004, "sourceEndpoint": { "nodeId": { - "id": 70163970493314 + "id": 18871093036425 }, "slotId": { "m_id": "{3E203C3C-5BEE-4D9A-B323-C2E4E1FC6A4E}" @@ -2586,7 +2616,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70116725853058 + "id": 18883977938313 }, "slotId": { "m_id": "{6E61BAF4-4F8C-4D6D-8573-960755DEC094}" @@ -2597,7 +2627,7 @@ }, { "Id": { - "id": 70202625198978 + "id": 18956992382345 }, "Name": "srcEndpoint=(If: True), destEndpoint=(DeactivateGameEntity: In)", "Components": { @@ -2606,7 +2636,7 @@ "Id": 11237921104715455686, "sourceEndpoint": { "nodeId": { - "id": 70116725853058 + "id": 18883977938313 }, "slotId": { "m_id": "{7BF2F1C4-4831-4B6B-A63B-1046AD1FACFF}" @@ -2614,7 +2644,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70146790624130 + "id": 18935517545865 }, "slotId": { "m_id": "{A015E6E8-A025-4A2D-B1D4-E7D8732FCE52}" @@ -2625,7 +2655,7 @@ }, { "Id": { - "id": 70206920166274 + "id": 18961287349641 }, "Name": "srcEndpoint=(Get Variable: EntityID), destEndpoint=(IsActive: EntityID: Entity Id)", "Components": { @@ -2634,7 +2664,7 @@ "Id": 14362014279952360310, "sourceEndpoint": { "nodeId": { - "id": 70155380558722 + "id": 18879682971017 }, "slotId": { "m_id": "{473E8586-669E-4DDD-B7A8-3A9F5EC510D5}" @@ -2642,7 +2672,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70163970493314 + "id": 18871093036425 }, "slotId": { "m_id": "{170B4D1A-5D4A-466F-98AF-A51747B2623A}" @@ -2653,7 +2683,7 @@ }, { "Id": { - "id": 70211215133570 + "id": 18965582316937 }, "Name": "srcEndpoint=(If: False), destEndpoint=(ActivateGameEntity: In)", "Components": { @@ -2662,7 +2692,7 @@ "Id": 16755694922186694113, "sourceEndpoint": { "nodeId": { - "id": 70116725853058 + "id": 18883977938313 }, "slotId": { "m_id": "{EDE70327-9E66-4A5E-AFE3-B9C4D099021E}" @@ -2670,7 +2700,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70090956049282 + "id": 18914042709385 }, "slotId": { "m_id": "{53670F84-98ED-4559-A2EC-3D2285DBC8E3}" @@ -2681,7 +2711,7 @@ }, { "Id": { - "id": 70215510100866 + "id": 18969877284233 }, "Name": "srcEndpoint=(Get Variable: EntityID), destEndpoint=(ActivateGameEntity: EntityID: 0)", "Components": { @@ -2690,7 +2720,7 @@ "Id": 1634747738940978819, "sourceEndpoint": { "nodeId": { - "id": 70155380558722 + "id": 18879682971017 }, "slotId": { "m_id": "{473E8586-669E-4DDD-B7A8-3A9F5EC510D5}" @@ -2698,7 +2728,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70090956049282 + "id": 18914042709385 }, "slotId": { "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" @@ -2709,7 +2739,7 @@ }, { "Id": { - "id": 70219805068162 + "id": 18974172251529 }, "Name": "srcEndpoint=(Get Variable: EntityID), destEndpoint=(DeactivateGameEntity: EntityID: 0)", "Components": { @@ -2718,7 +2748,7 @@ "Id": 8821531688847258487, "sourceEndpoint": { "nodeId": { - "id": 70155380558722 + "id": 18879682971017 }, "slotId": { "m_id": "{473E8586-669E-4DDD-B7A8-3A9F5EC510D5}" @@ -2726,7 +2756,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70146790624130 + "id": 18935517545865 }, "slotId": { "m_id": "{993AA3E4-ABCF-40FF-9CCB-030F22627151}" @@ -2737,7 +2767,7 @@ }, { "Id": { - "id": 70224100035458 + "id": 18978467218825 }, "Name": "srcEndpoint=(IsActive: Out), destEndpoint=(If: In)", "Components": { @@ -2746,7 +2776,7 @@ "Id": 8561478604291958262, "sourceEndpoint": { "nodeId": { - "id": 70095251016578 + "id": 18931222578569 }, "slotId": { "m_id": "{3E203C3C-5BEE-4D9A-B323-C2E4E1FC6A4E}" @@ -2754,7 +2784,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70108135918466 + "id": 18862503101833 }, "slotId": { "m_id": "{6E61BAF4-4F8C-4D6D-8573-960755DEC094}" @@ -2765,7 +2795,7 @@ }, { "Id": { - "id": 70228395002754 + "id": 18982762186121 }, "Name": "srcEndpoint=(IsActive: Result: Boolean), destEndpoint=(If: Condition)", "Components": { @@ -2774,7 +2804,7 @@ "Id": 9146734319289132197, "sourceEndpoint": { "nodeId": { - "id": 70095251016578 + "id": 18931222578569 }, "slotId": { "m_id": "{14EE86BB-E7E2-4210-B5ED-8F543D82F66C}" @@ -2782,7 +2812,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70108135918466 + "id": 18862503101833 }, "slotId": { "m_id": "{3C9FBBC2-3934-4C35-B959-9E26F93AB525}" @@ -2793,7 +2823,7 @@ }, { "Id": { - "id": 70232689970050 + "id": 18987057153417 }, "Name": "srcEndpoint=(IsActive: Out), destEndpoint=(If: In)", "Components": { @@ -2802,7 +2832,7 @@ "Id": 11833205937891498095, "sourceEndpoint": { "nodeId": { - "id": 70172560427906 + "id": 18849618199945 }, "slotId": { "m_id": "{3E203C3C-5BEE-4D9A-B323-C2E4E1FC6A4E}" @@ -2810,7 +2840,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70189740297090 + "id": 18922632643977 }, "slotId": { "m_id": "{6E61BAF4-4F8C-4D6D-8573-960755DEC094}" @@ -2821,7 +2851,7 @@ }, { "Id": { - "id": 70236984937346 + "id": 18991352120713 }, "Name": "srcEndpoint=(IsActive: Result: Boolean), destEndpoint=(If: Condition)", "Components": { @@ -2830,7 +2860,7 @@ "Id": 10467104857840052907, "sourceEndpoint": { "nodeId": { - "id": 70172560427906 + "id": 18849618199945 }, "slotId": { "m_id": "{14EE86BB-E7E2-4210-B5ED-8F543D82F66C}" @@ -2838,7 +2868,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70189740297090 + "id": 18922632643977 }, "slotId": { "m_id": "{3C9FBBC2-3934-4C35-B959-9E26F93AB525}" @@ -2849,7 +2879,7 @@ }, { "Id": { - "id": 70241279904642 + "id": 18995647088009 }, "Name": "srcEndpoint=(Get Variable: EntityID), destEndpoint=(IsActive: EntityID: Entity Id)", "Components": { @@ -2858,7 +2888,7 @@ "Id": 1012188603409101617, "sourceEndpoint": { "nodeId": { - "id": 70099545983874 + "id": 18901157807497 }, "slotId": { "m_id": "{6DDB4692-35F9-4570-B914-951F1FFAB089}" @@ -2866,7 +2896,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70095251016578 + "id": 18931222578569 }, "slotId": { "m_id": "{170B4D1A-5D4A-466F-98AF-A51747B2623A}" @@ -2877,7 +2907,7 @@ }, { "Id": { - "id": 70245574871938 + "id": 18999942055305 }, "Name": "srcEndpoint=(Get Variable: EntityID), destEndpoint=(IsActive: EntityID: Entity Id)", "Components": { @@ -2886,7 +2916,7 @@ "Id": 5402619035508314979, "sourceEndpoint": { "nodeId": { - "id": 70121020820354 + "id": 18909747742089 }, "slotId": { "m_id": "{640B69D0-23E0-4A8E-BB94-477CFDE2E5F5}" @@ -2894,7 +2924,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70172560427906 + "id": 18849618199945 }, "slotId": { "m_id": "{170B4D1A-5D4A-466F-98AF-A51747B2623A}" @@ -2905,7 +2935,7 @@ }, { "Id": { - "id": 70249869839234 + "id": 19004237022601 }, "Name": "srcEndpoint=(If: True), destEndpoint=(DeactivateGameEntity: In)", "Components": { @@ -2914,7 +2944,7 @@ "Id": 18435267100506239768, "sourceEndpoint": { "nodeId": { - "id": 70108135918466 + "id": 18862503101833 }, "slotId": { "m_id": "{7BF2F1C4-4831-4B6B-A63B-1046AD1FACFF}" @@ -2922,7 +2952,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70151085591426 + "id": 18892567872905 }, "slotId": { "m_id": "{A015E6E8-A025-4A2D-B1D4-E7D8732FCE52}" @@ -2933,7 +2963,7 @@ }, { "Id": { - "id": 70254164806530 + "id": 19008531989897 }, "Name": "srcEndpoint=(If: False), destEndpoint=(ActivateGameEntity: In)", "Components": { @@ -2942,7 +2972,7 @@ "Id": 15164751479546717561, "sourceEndpoint": { "nodeId": { - "id": 70108135918466 + "id": 18862503101833 }, "slotId": { "m_id": "{EDE70327-9E66-4A5E-AFE3-B9C4D099021E}" @@ -2950,7 +2980,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70176855395202 + "id": 18875388003721 }, "slotId": { "m_id": "{53670F84-98ED-4559-A2EC-3D2285DBC8E3}" @@ -2961,7 +2991,7 @@ }, { "Id": { - "id": 70258459773826 + "id": 19012826957193 }, "Name": "srcEndpoint=(If: True), destEndpoint=(DeactivateGameEntity: In)", "Components": { @@ -2970,7 +3000,7 @@ "Id": 5061560116223750730, "sourceEndpoint": { "nodeId": { - "id": 70189740297090 + "id": 18922632643977 }, "slotId": { "m_id": "{7BF2F1C4-4831-4B6B-A63B-1046AD1FACFF}" @@ -2978,7 +3008,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70103840951170 + "id": 18926927611273 }, "slotId": { "m_id": "{A015E6E8-A025-4A2D-B1D4-E7D8732FCE52}" @@ -2989,7 +3019,7 @@ }, { "Id": { - "id": 70262754741122 + "id": 19017121924489 }, "Name": "srcEndpoint=(If: False), destEndpoint=(ActivateGameEntity: In)", "Components": { @@ -2998,7 +3028,7 @@ "Id": 10711100284272855896, "sourceEndpoint": { "nodeId": { - "id": 70189740297090 + "id": 18922632643977 }, "slotId": { "m_id": "{EDE70327-9E66-4A5E-AFE3-B9C4D099021E}" @@ -3006,7 +3036,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70129610754946 + "id": 18888272905609 }, "slotId": { "m_id": "{53670F84-98ED-4559-A2EC-3D2285DBC8E3}" @@ -3017,7 +3047,7 @@ }, { "Id": { - "id": 70267049708418 + "id": 19021416891785 }, "Name": "srcEndpoint=(Get Variable: EntityID), destEndpoint=(DeactivateGameEntity: EntityID: 0)", "Components": { @@ -3026,7 +3056,7 @@ "Id": 4394555422677501602, "sourceEndpoint": { "nodeId": { - "id": 70099545983874 + "id": 18901157807497 }, "slotId": { "m_id": "{6DDB4692-35F9-4570-B914-951F1FFAB089}" @@ -3034,7 +3064,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70151085591426 + "id": 18892567872905 }, "slotId": { "m_id": "{993AA3E4-ABCF-40FF-9CCB-030F22627151}" @@ -3045,7 +3075,7 @@ }, { "Id": { - "id": 70271344675714 + "id": 19025711859081 }, "Name": "srcEndpoint=(Get Variable: EntityID), destEndpoint=(DeactivateGameEntity: EntityID: 0)", "Components": { @@ -3054,7 +3084,7 @@ "Id": 4685709028181371637, "sourceEndpoint": { "nodeId": { - "id": 70121020820354 + "id": 18909747742089 }, "slotId": { "m_id": "{640B69D0-23E0-4A8E-BB94-477CFDE2E5F5}" @@ -3062,7 +3092,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70103840951170 + "id": 18926927611273 }, "slotId": { "m_id": "{993AA3E4-ABCF-40FF-9CCB-030F22627151}" @@ -3073,7 +3103,7 @@ }, { "Id": { - "id": 70275639643010 + "id": 19030006826377 }, "Name": "srcEndpoint=(Get Variable: EntityID), destEndpoint=(ActivateGameEntity: EntityID: 0)", "Components": { @@ -3082,7 +3112,7 @@ "Id": 3306462520084951475, "sourceEndpoint": { "nodeId": { - "id": 70121020820354 + "id": 18909747742089 }, "slotId": { "m_id": "{640B69D0-23E0-4A8E-BB94-477CFDE2E5F5}" @@ -3090,7 +3120,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70129610754946 + "id": 18888272905609 }, "slotId": { "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" @@ -3101,7 +3131,7 @@ }, { "Id": { - "id": 70279934610306 + "id": 19034301793673 }, "Name": "srcEndpoint=(DeactivateGameEntity: Out), destEndpoint=(Print: In)", "Components": { @@ -3110,7 +3140,7 @@ "Id": 17145465513158447772, "sourceEndpoint": { "nodeId": { - "id": 70146790624130 + "id": 18935517545865 }, "slotId": { "m_id": "{925E7BB1-22EB-46A2-98E2-9A9805A4D019}" @@ -3118,7 +3148,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70125315787650 + "id": 18939812513161 }, "slotId": { "m_id": "{8A68C668-FF05-4B9C-8AF3-20BA7AC5A783}" @@ -3129,7 +3159,7 @@ }, { "Id": { - "id": 70284229577602 + "id": 19038596760969 }, "Name": "srcEndpoint=(ActivateGameEntity: Out), destEndpoint=(Print: In)", "Components": { @@ -3138,7 +3168,7 @@ "Id": 14069026837818796272, "sourceEndpoint": { "nodeId": { - "id": 70090956049282 + "id": 18914042709385 }, "slotId": { "m_id": "{1904FF69-ECF6-47AC-9318-2EBDAA8A5485}" @@ -3146,7 +3176,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70138200689538 + "id": 18858208134537 }, "slotId": { "m_id": "{451A59EF-BD5D-4E7D-82BE-3B4E7EAF9B48}" @@ -3157,7 +3187,7 @@ }, { "Id": { - "id": 70288524544898 + "id": 19042891728265 }, "Name": "srcEndpoint=(DeactivateGameEntity: Out), destEndpoint=(Print: In)", "Components": { @@ -3166,7 +3196,7 @@ "Id": 7728736156493449863, "sourceEndpoint": { "nodeId": { - "id": 70151085591426 + "id": 18892567872905 }, "slotId": { "m_id": "{925E7BB1-22EB-46A2-98E2-9A9805A4D019}" @@ -3174,7 +3204,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70125315787650 + "id": 18939812513161 }, "slotId": { "m_id": "{8A68C668-FF05-4B9C-8AF3-20BA7AC5A783}" @@ -3185,7 +3215,7 @@ }, { "Id": { - "id": 70292819512194 + "id": 19047186695561 }, "Name": "srcEndpoint=(ActivateGameEntity: Out), destEndpoint=(Print: In)", "Components": { @@ -3194,7 +3224,7 @@ "Id": 10386336352272981702, "sourceEndpoint": { "nodeId": { - "id": 70176855395202 + "id": 18875388003721 }, "slotId": { "m_id": "{1904FF69-ECF6-47AC-9318-2EBDAA8A5485}" @@ -3202,7 +3232,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70138200689538 + "id": 18858208134537 }, "slotId": { "m_id": "{451A59EF-BD5D-4E7D-82BE-3B4E7EAF9B48}" @@ -3213,7 +3243,7 @@ }, { "Id": { - "id": 70297114479490 + "id": 19051481662857 }, "Name": "srcEndpoint=(DeactivateGameEntity: Out), destEndpoint=(Print: In)", "Components": { @@ -3222,7 +3252,7 @@ "Id": 16807949046056318365, "sourceEndpoint": { "nodeId": { - "id": 70103840951170 + "id": 18926927611273 }, "slotId": { "m_id": "{925E7BB1-22EB-46A2-98E2-9A9805A4D019}" @@ -3230,7 +3260,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70125315787650 + "id": 18939812513161 }, "slotId": { "m_id": "{8A68C668-FF05-4B9C-8AF3-20BA7AC5A783}" @@ -3241,7 +3271,7 @@ }, { "Id": { - "id": 70301409446786 + "id": 19055776630153 }, "Name": "srcEndpoint=(ActivateGameEntity: Out), destEndpoint=(Print: In)", "Components": { @@ -3250,7 +3280,7 @@ "Id": 13893900813580744359, "sourceEndpoint": { "nodeId": { - "id": 70129610754946 + "id": 18888272905609 }, "slotId": { "m_id": "{1904FF69-ECF6-47AC-9318-2EBDAA8A5485}" @@ -3258,7 +3288,7 @@ }, "targetEndpoint": { "nodeId": { - "id": 70138200689538 + "id": 18858208134537 }, "slotId": { "m_id": "{451A59EF-BD5D-4E7D-82BE-3B4E7EAF9B48}" @@ -3269,27 +3299,279 @@ }, { "Id": { - "id": 70305704414082 + "id": 19060071597449 }, "Name": "srcEndpoint=(Get Variable: EntityID), destEndpoint=(ActivateGameEntity: EntityID: 0)", "Components": { "Component_[3566132196647215905]": { "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", - "Id": 3566132196647215905, + "Id": 3566132196647215905, + "sourceEndpoint": { + "nodeId": { + "id": 18901157807497 + }, + "slotId": { + "m_id": "{6DDB4692-35F9-4570-B914-951F1FFAB089}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 18875388003721 + }, + "slotId": { + "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" + } + } + } + } + }, + { + "Id": { + "id": 19064366564745 + }, + "Name": "srcEndpoint=(Get Variable: Out), destEndpoint=(IsActive: In)", + "Components": { + "Component_[15737173947743935362]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 15737173947743935362, + "sourceEndpoint": { + "nodeId": { + "id": 18879682971017 + }, + "slotId": { + "m_id": "{B36D2C46-0A2B-4C90-B57C-5D9B7D3C1A63}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 18871093036425 + }, + "slotId": { + "m_id": "{5A9AE174-D5E3-4512-A0BF-BA442C001F00}" + } + } + } + } + }, + { + "Id": { + "id": 19068661532041 + }, + "Name": "srcEndpoint=(Get Variable: Out), destEndpoint=(IsActive: In)", + "Components": { + "Component_[10250827968868397862]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 10250827968868397862, + "sourceEndpoint": { + "nodeId": { + "id": 18901157807497 + }, + "slotId": { + "m_id": "{DF9C6AFF-531F-4E74-80CC-1F6889A1CE9E}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 18931222578569 + }, + "slotId": { + "m_id": "{5A9AE174-D5E3-4512-A0BF-BA442C001F00}" + } + } + } + } + }, + { + "Id": { + "id": 19072956499337 + }, + "Name": "srcEndpoint=(Get Variable: Out), destEndpoint=(IsActive: In)", + "Components": { + "Component_[2090477647964111499]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 2090477647964111499, + "sourceEndpoint": { + "nodeId": { + "id": 18909747742089 + }, + "slotId": { + "m_id": "{6B862981-524C-4643-A2C2-9454CB1FD552}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 18849618199945 + }, + "slotId": { + "m_id": "{5A9AE174-D5E3-4512-A0BF-BA442C001F00}" + } + } + } + } + }, + { + "Id": { + "id": 19077251466633 + }, + "Name": "srcEndpoint=(GetOnCollisionBeginEvent: Result: Event const CollisionEvent& >), destEndpoint=(On Collision Begin event: On Collision Begin event)", + "Components": { + "Component_[2569723425229584356]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 2569723425229584356, + "sourceEndpoint": { + "nodeId": { + "id": 18845323232649 + }, + "slotId": { + "m_id": "{B647ABD6-B8B1-45CB-ACF4-495E416BB744}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 18905452774793 + }, + "slotId": { + "m_id": "{D4CACFC7-0F7B-4311-9125-D6624D302C50}" + } + } + } + } + }, + { + "Id": { + "id": 19081546433929 + }, + "Name": "srcEndpoint=(GetOnCollisionBeginEvent: Out), destEndpoint=(On Collision Begin event: Connect)", + "Components": { + "Component_[15942787264105251949]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 15942787264105251949, + "sourceEndpoint": { + "nodeId": { + "id": 18845323232649 + }, + "slotId": { + "m_id": "{4C7050D8-46F3-4E72-865E-8F2897430750}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 18905452774793 + }, + "slotId": { + "m_id": "{C3576303-C50B-4466-B3C1-A96F40F0B494}" + } + } + } + } + }, + { + "Id": { + "id": 19085841401225 + }, + "Name": "srcEndpoint=(EntityBus Handler: ExecutionSlot:OnEntityActivated), destEndpoint=(GetOnCollisionBeginEvent: In)", + "Components": { + "Component_[8910888382874480678]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 8910888382874480678, + "sourceEndpoint": { + "nodeId": { + "id": 18853913167241 + }, + "slotId": { + "m_id": "{4B50FCC8-C542-42E4-B17C-BD56173F1A26}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 18845323232649 + }, + "slotId": { + "m_id": "{ADA8C93D-8987-4537-99CD-A96986C8BF74}" + } + } + } + } + }, + { + "Id": { + "id": 19090136368521 + }, + "Name": "srcEndpoint=(GetOnCollisionPersistEvent: Result: Event const CollisionEvent& >), destEndpoint=(On Collision Persist event: On Collision Persist event)", + "Components": { + "Component_[6698981601680662520]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 6698981601680662520, + "sourceEndpoint": { + "nodeId": { + "id": 18866798069129 + }, + "slotId": { + "m_id": "{79056EFB-B34F-4702-B206-C9400F3408D6}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 18896862840201 + }, + "slotId": { + "m_id": "{1C7070F8-D281-414C-BF9B-D6B6B5F12926}" + } + } + } + } + }, + { + "Id": { + "id": 19094431335817 + }, + "Name": "srcEndpoint=(GetOnCollisionPersistEvent: Out), destEndpoint=(On Collision Persist event: Connect)", + "Components": { + "Component_[2650501895853204017]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 2650501895853204017, + "sourceEndpoint": { + "nodeId": { + "id": 18866798069129 + }, + "slotId": { + "m_id": "{FF7196F6-D599-44FC-8481-9DBE522529DF}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 18896862840201 + }, + "slotId": { + "m_id": "{D60E85B8-F645-47F8-92BE-0A0251269168}" + } + } + } + } + }, + { + "Id": { + "id": 19098726303113 + }, + "Name": "srcEndpoint=(EntityBus Handler: ExecutionSlot:OnEntityActivated), destEndpoint=(GetOnCollisionPersistEvent: In)", + "Components": { + "Component_[7564290783625553287]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 7564290783625553287, "sourceEndpoint": { "nodeId": { - "id": 70099545983874 + "id": 18853913167241 }, "slotId": { - "m_id": "{6DDB4692-35F9-4570-B914-951F1FFAB089}" + "m_id": "{4B50FCC8-C542-42E4-B17C-BD56173F1A26}" } }, "targetEndpoint": { "nodeId": { - "id": 70176855395202 + "id": 18866798069129 }, "slotId": { - "m_id": "{4BCEF1F2-EB16-44C9-837F-CA936DAC9A2F}" + "m_id": "{3EE67098-3620-40AE-9463-4812E39075B9}" } } } @@ -3297,27 +3579,27 @@ }, { "Id": { - "id": 70309999381378 + "id": 19103021270409 }, - "Name": "srcEndpoint=(Get Variable: Out), destEndpoint=(IsActive: In)", + "Name": "srcEndpoint=(On Collision Begin event: OnEvent), destEndpoint=(Get Variable: In)", "Components": { - "Component_[15737173947743935362]": { + "Component_[6368337435612519589]": { "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", - "Id": 15737173947743935362, + "Id": 6368337435612519589, "sourceEndpoint": { "nodeId": { - "id": 70155380558722 + "id": 18905452774793 }, "slotId": { - "m_id": "{B36D2C46-0A2B-4C90-B57C-5D9B7D3C1A63}" + "m_id": "{FDC1C72B-2C39-43BA-87B4-2E88D1C2F82A}" } }, "targetEndpoint": { "nodeId": { - "id": 70163970493314 + "id": 18879682971017 }, "slotId": { - "m_id": "{5A9AE174-D5E3-4512-A0BF-BA442C001F00}" + "m_id": "{5A04BA4A-061E-4775-A6CE-713E298D4E9A}" } } } @@ -3325,27 +3607,27 @@ }, { "Id": { - "id": 70314294348674 + "id": 19107316237705 }, - "Name": "srcEndpoint=(On Collision Begin event: OnEvent), destEndpoint=(Get Variable: In)", + "Name": "srcEndpoint=(On Collision Persist event: OnEvent), destEndpoint=(Get Variable: In)", "Components": { - "Component_[6115424509860805504]": { + "Component_[12264834104825978898]": { "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", - "Id": 6115424509860805504, + "Id": 12264834104825978898, "sourceEndpoint": { "nodeId": { - "id": 70112430885762 + "id": 18896862840201 }, "slotId": { - "m_id": "{E32049C5-FF99-4E74-91EC-D007B0D6EF7B}" + "m_id": "{6B89E130-60D1-42A4-9C9C-679E84DD6389}" } }, "targetEndpoint": { "nodeId": { - "id": 70155380558722 + "id": 18901157807497 }, "slotId": { - "m_id": "{5A04BA4A-061E-4775-A6CE-713E298D4E9A}" + "m_id": "{245126A2-D7FE-4C59-BF8D-46F791EEE730}" } } } @@ -3353,27 +3635,27 @@ }, { "Id": { - "id": 70318589315970 + "id": 19111611205001 }, - "Name": "srcEndpoint=(Get Variable: Out), destEndpoint=(IsActive: In)", + "Name": "srcEndpoint=(GetOnCollisionEndEvent: Result: Event const CollisionEvent& >), destEndpoint=(On Collision End event: On Collision End event)", "Components": { - "Component_[10250827968868397862]": { + "Component_[7813602739286642138]": { "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", - "Id": 10250827968868397862, + "Id": 7813602739286642138, "sourceEndpoint": { "nodeId": { - "id": 70099545983874 + "id": 18944107480457 }, "slotId": { - "m_id": "{DF9C6AFF-531F-4E74-80CC-1F6889A1CE9E}" + "m_id": "{CBF241C4-DB7C-4DCA-AD01-AA806F28AA1A}" } }, "targetEndpoint": { "nodeId": { - "id": 70095251016578 + "id": 18918337676681 }, "slotId": { - "m_id": "{5A9AE174-D5E3-4512-A0BF-BA442C001F00}" + "m_id": "{AF5C00D0-E405-4350-B4B2-0B7FB2CDB410}" } } } @@ -3381,27 +3663,27 @@ }, { "Id": { - "id": 70322884283266 + "id": 19115906172297 }, - "Name": "srcEndpoint=(On Collision Persist event: OnEvent), destEndpoint=(Get Variable: In)", + "Name": "srcEndpoint=(GetOnCollisionEndEvent: Out), destEndpoint=(On Collision End event: Connect)", "Components": { - "Component_[13286675358080560883]": { + "Component_[16385427931163233532]": { "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", - "Id": 13286675358080560883, + "Id": 16385427931163233532, "sourceEndpoint": { "nodeId": { - "id": 70181150362498 + "id": 18944107480457 }, "slotId": { - "m_id": "{1A994B40-F1C6-4F60-9F44-4CE42732554C}" + "m_id": "{1F68015F-AB0F-4A63-8FF3-E4EB3EE000C9}" } }, "targetEndpoint": { "nodeId": { - "id": 70099545983874 + "id": 18918337676681 }, "slotId": { - "m_id": "{245126A2-D7FE-4C59-BF8D-46F791EEE730}" + "m_id": "{63E9373E-95EC-407F-ACED-A5D50598A0D9}" } } } @@ -3409,27 +3691,27 @@ }, { "Id": { - "id": 70327179250562 + "id": 19120201139593 }, - "Name": "srcEndpoint=(Get Variable: Out), destEndpoint=(IsActive: In)", + "Name": "srcEndpoint=(On Collision End event: OnEvent), destEndpoint=(Get Variable: In)", "Components": { - "Component_[2090477647964111499]": { + "Component_[11664109633636291302]": { "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", - "Id": 2090477647964111499, + "Id": 11664109633636291302, "sourceEndpoint": { "nodeId": { - "id": 70121020820354 + "id": 18918337676681 }, "slotId": { - "m_id": "{6B862981-524C-4643-A2C2-9454CB1FD552}" + "m_id": "{DFF1C200-D219-4959-8E01-2BD77B973C40}" } }, "targetEndpoint": { "nodeId": { - "id": 70172560427906 + "id": 18909747742089 }, "slotId": { - "m_id": "{5A9AE174-D5E3-4512-A0BF-BA442C001F00}" + "m_id": "{7A817841-79D4-41FC-97DA-72E599A770CC}" } } } @@ -3437,27 +3719,27 @@ }, { "Id": { - "id": 70331474217858 + "id": 19124496106889 }, - "Name": "srcEndpoint=(On Collision End event: OnEvent), destEndpoint=(Get Variable: In)", + "Name": "srcEndpoint=(EntityBus Handler: ExecutionSlot:OnEntityActivated), destEndpoint=(GetOnCollisionEndEvent: In)", "Components": { - "Component_[9355447111337093492]": { + "Component_[7299601167427661211]": { "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", - "Id": 9355447111337093492, + "Id": 7299601167427661211, "sourceEndpoint": { "nodeId": { - "id": 70185445329794 + "id": 18853913167241 }, "slotId": { - "m_id": "{FFBDBAC4-AF71-443C-BD6C-6C9E6BFAD858}" + "m_id": "{4B50FCC8-C542-42E4-B17C-BD56173F1A26}" } }, "targetEndpoint": { "nodeId": { - "id": 70121020820354 + "id": 18944107480457 }, "slotId": { - "m_id": "{7A817841-79D4-41FC-97DA-72E599A770CC}" + "m_id": "{3933A5FE-5430-41E9-AE89-39DBF93EE427}" } } } @@ -3474,54 +3756,16 @@ "GraphCanvasData": [ { "Key": { - "id": 70086661081986 + "id": 18841028265353 }, "Value": { "ComponentData": { "{5F84B500-8C45-40D1-8EFC-A5306B241444}": { "$type": "SceneComponentSaveData", - "Constructs": [ - { - "Type": 1, - "DataContainer": { - "ComponentData": { - "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { - "$type": "NodeSaveData" - }, - "{524D8380-AC09-444E-870E-9CEF2535B4A2}": { - "$type": "CommentNodeTextSaveData", - "Comment": "These are disconnected because a bug in Script Canvas with AZ::Events.\n\nOnce the issue is fixed reconnecting the nodes should make the test to pass", - "BackgroundColor": [ - 0.9800000190734863, - 0.9700000286102295, - 0.6499999761581421 - ], - "FontSettings": { - "PixelSize": 32 - } - }, - "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { - "$type": "GeometrySaveData", - "Position": [ - -1280.0, - -500.0 - ] - }, - "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData" - }, - "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { - "$type": "PersistentIdComponentSaveData", - "PersistentId": "{014DAF90-9434-4257-9670-6378E4D62A11}" - } - } - } - } - ], "ViewParams": { - "Scale": 0.6573655545525766, - "AnchorX": -1186.554443359375, - "AnchorY": -578.06494140625 + "Scale": 0.829105973051423, + "AnchorX": -1567.9539794921875, + "AnchorY": -593.4102783203125 } } } @@ -3529,7 +3773,7 @@ }, { "Key": { - "id": 70090956049282 + "id": 18845323232649 }, "Value": { "ComponentData": { @@ -3543,8 +3787,8 @@ "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 1420.0, - -140.0 + -880.0, + -300.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { @@ -3553,14 +3797,14 @@ }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{8B43E9D6-660F-4AD8-ABAF-D2CA12714C8C}" + "PersistentId": "{E613A2EF-EEC7-48F5-8A25-06D37B765791}" } } } }, { "Key": { - "id": 70095251016578 + "id": 18849618199945 }, "Value": { "ComponentData": { @@ -3575,7 +3819,7 @@ "$type": "GeometrySaveData", "Position": [ 600.0, - 100.0 + 460.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { @@ -3583,45 +3827,48 @@ }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{FA508AFD-513D-4334-9760-909A9D4C765A}" + "PersistentId": "{2B76EE69-5338-4B1A-A4BE-98960F9F71D4}" } } } }, { "Key": { - "id": 70099545983874 + "id": 18853913167241 }, "Value": { "ComponentData": { "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { "$type": "NodeSaveData" }, - "{328FF15C-C302-458F-A43D-E1794DE0904E}": { - "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "GetVariableNodeTitlePalette" - }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 200.0, - 100.0 + -1300.0, + 0.0 + ] + }, + "{9E81C95F-89C0-4476-8E82-63CCC4E52E04}": { + "$type": "EBusHandlerNodeDescriptorSaveData", + "EventIds": [ + { + "Value": 245425936 + } ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData", - "SubStyle": ".getVariable" + "$type": "StylingComponentSaveData" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{4970AE58-0BC4-45EE-B2E9-E14AF347E91F}" + "PersistentId": "{5D4F47C6-521E-46DB-9899-4E8E558A6329}" } } } }, { "Key": { - "id": 70103840951170 + "id": 18858208134537 }, "Value": { "ComponentData": { @@ -3630,29 +3877,28 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "MethodNodeTitlePalette" + "PaletteOverride": "StringNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 1420.0, - 380.0 + 2000.0, + 260.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData", - "SubStyle": ".method" + "$type": "StylingComponentSaveData" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{5DB80931-443B-48A6-9B96-79152E545DE9}" + "PersistentId": "{6EDB526D-EFA0-44C2-8A0C-9083BE1143D8}" } } } }, { "Key": { - "id": 70108135918466 + "id": 18862503101833 }, "Value": { "ComponentData": { @@ -3683,7 +3929,7 @@ }, { "Key": { - "id": 70112430885762 + "id": 18866798069129 }, "Value": { "ComponentData": { @@ -3692,29 +3938,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "HandlerNodeTitlePalette" + "PaletteOverride": "MethodNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - -280.0, - -280.0 + -880.0, + 60.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData", - "SubStyle": ".azeventhandler" + "SubStyle": ".method" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{7DBDAF02-24F5-4FEF-97F6-5C71F5596B09}" + "PersistentId": "{99545608-279F-4AD9-B274-44414E4C23C4}" } } } }, { "Key": { - "id": 70116725853058 + "id": 18871093036425 }, "Value": { "ComponentData": { @@ -3723,29 +3969,28 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "LogicNodeTitlePalette" + "PaletteOverride": "DefaultNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 1080.0, - -220.0 + 600.0, + -240.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData", - "SubStyle": ".logic" + "$type": "StylingComponentSaveData" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{D9B0DBAE-33BB-4DD0-853F-3609B859651E}" + "PersistentId": "{72129D0C-F4AF-4367-962F-BE9EEFC6A1C8}" } } } }, { "Key": { - "id": 70121020820354 + "id": 18875388003721 }, "Value": { "ComponentData": { @@ -3754,29 +3999,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "GetVariableNodeTitlePalette" + "PaletteOverride": "MethodNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 220.0, - 460.0 + 1420.0, + 200.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData", - "SubStyle": ".getVariable" + "SubStyle": ".method" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{D2E4DE42-76F7-4B2E-838A-49EA403EA569}" + "PersistentId": "{26BE8EF6-5AEC-42D8-AC7F-D380B460242D}" } } } }, { "Key": { - "id": 70125315787650 + "id": 18879682971017 }, "Value": { "ComponentData": { @@ -3785,28 +4030,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "StringNodeTitlePalette" + "PaletteOverride": "GetVariableNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 2000.0, - -160.0 + 200.0, + -240.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData" + "$type": "StylingComponentSaveData", + "SubStyle": ".getVariable" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{389C6D5B-CE48-4C06-9A9C-BF8A63B50375}" + "PersistentId": "{6F168FFF-9795-4C98-803C-FC4903E0C0A9}" } } } }, { "Key": { - "id": 70129610754946 + "id": 18883977938313 }, "Value": { "ComponentData": { @@ -3815,29 +4061,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "MethodNodeTitlePalette" + "PaletteOverride": "LogicNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 1420.0, - 560.0 + 1080.0, + -220.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData", - "SubStyle": ".method" + "SubStyle": ".logic" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{DA5DCC2B-9E77-46F7-8CA9-A2FADE367B25}" + "PersistentId": "{D9B0DBAE-33BB-4DD0-853F-3609B859651E}" } } } }, { "Key": { - "id": 70133905722242 + "id": 18888272905609 }, "Value": { "ComponentData": { @@ -3851,8 +4097,8 @@ "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - -880.0, - 400.0 + 1420.0, + 560.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { @@ -3861,14 +4107,14 @@ }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{64E2639D-6884-4692-9008-CFDACD35023F}" + "PersistentId": "{DA5DCC2B-9E77-46F7-8CA9-A2FADE367B25}" } } } }, { "Key": { - "id": 70138200689538 + "id": 18892567872905 }, "Value": { "ComponentData": { @@ -3877,28 +4123,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "StringNodeTitlePalette" + "PaletteOverride": "MethodNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 2000.0, - 260.0 + 1420.0, + 20.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData" + "$type": "StylingComponentSaveData", + "SubStyle": ".method" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{6EDB526D-EFA0-44C2-8A0C-9083BE1143D8}" + "PersistentId": "{0722BECC-EBCA-43E3-8EEC-618BD189E739}" } } } }, { "Key": { - "id": 70142495656834 + "id": 18896862840201 }, "Value": { "ComponentData": { @@ -3907,29 +4154,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "MethodNodeTitlePalette" + "PaletteOverride": "HandlerNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - -900.0, - -260.0 + -260.0, + 40.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData", - "SubStyle": ".method" + "SubStyle": ".azeventhandler" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{B9CA5B12-F636-47FE-804B-E11C972D4D8F}" + "PersistentId": "{81D06A9B-7E9B-4D71-86F3-094C5AE71E6C}" } } } }, { "Key": { - "id": 70146790624130 + "id": 18901157807497 }, "Value": { "ComponentData": { @@ -3938,29 +4185,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "MethodNodeTitlePalette" + "PaletteOverride": "GetVariableNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 1420.0, - -300.0 + 200.0, + 100.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData", - "SubStyle": ".method" + "SubStyle": ".getVariable" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{453BE3A7-5198-45D2-A8C8-A343CAA048C1}" + "PersistentId": "{4970AE58-0BC4-45EE-B2E9-E14AF347E91F}" } } } }, { "Key": { - "id": 70151085591426 + "id": 18905452774793 }, "Value": { "ComponentData": { @@ -3969,29 +4216,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "MethodNodeTitlePalette" + "PaletteOverride": "HandlerNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 1420.0, - 20.0 + -260.0, + -320.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData", - "SubStyle": ".method" + "SubStyle": ".azeventhandler" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{0722BECC-EBCA-43E3-8EEC-618BD189E739}" + "PersistentId": "{62A35A1F-ED7F-4D4A-8E9F-E8875037EF0C}" } } } }, { "Key": { - "id": 70155380558722 + "id": 18909747742089 }, "Value": { "ComponentData": { @@ -4005,8 +4252,8 @@ "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 200.0, - -240.0 + 220.0, + 460.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { @@ -4015,48 +4262,45 @@ }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{6F168FFF-9795-4C98-803C-FC4903E0C0A9}" + "PersistentId": "{D2E4DE42-76F7-4B2E-838A-49EA403EA569}" } } } }, { "Key": { - "id": 70159675526018 + "id": 18914042709385 }, "Value": { "ComponentData": { "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { "$type": "NodeSaveData" }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "MethodNodeTitlePalette" + }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - -1300.0, - 0.0 - ] - }, - "{9E81C95F-89C0-4476-8E82-63CCC4E52E04}": { - "$type": "EBusHandlerNodeDescriptorSaveData", - "EventIds": [ - { - "Value": 245425936 - } + 1420.0, + -140.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData" + "$type": "StylingComponentSaveData", + "SubStyle": ".method" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{5D4F47C6-521E-46DB-9899-4E8E558A6329}" + "PersistentId": "{8B43E9D6-660F-4AD8-ABAF-D2CA12714C8C}" } } } }, { "Key": { - "id": 70163970493314 + "id": 18918337676681 }, "Value": { "ComponentData": { @@ -4065,28 +4309,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "DefaultNodeTitlePalette" + "PaletteOverride": "HandlerNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 600.0, - -240.0 + -260.0, + 400.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData" + "$type": "StylingComponentSaveData", + "SubStyle": ".azeventhandler" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{72129D0C-F4AF-4367-962F-BE9EEFC6A1C8}" + "PersistentId": "{8FB39DE9-7038-4B5A-81E9-409FFD3ADF1F}" } } } }, { "Key": { - "id": 70168265460610 + "id": 18922632643977 }, "Value": { "ComponentData": { @@ -4095,29 +4340,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "MethodNodeTitlePalette" + "PaletteOverride": "LogicNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - -900.0, - 40.0 + 1080.0, + 480.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData", - "SubStyle": ".method" + "SubStyle": ".logic" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{4B279432-B947-45C5-8BF0-473703906A28}" + "PersistentId": "{D09C8DAB-49A0-41CB-89D1-302EA305B161}" } } } }, { "Key": { - "id": 70172560427906 + "id": 18926927611273 }, "Value": { "ComponentData": { @@ -4126,28 +4371,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "DefaultNodeTitlePalette" + "PaletteOverride": "MethodNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 600.0, - 460.0 + 1420.0, + 380.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData" + "$type": "StylingComponentSaveData", + "SubStyle": ".method" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{2B76EE69-5338-4B1A-A4BE-98960F9F71D4}" + "PersistentId": "{5DB80931-443B-48A6-9B96-79152E545DE9}" } } } }, { "Key": { - "id": 70176855395202 + "id": 18931222578569 }, "Value": { "ComponentData": { @@ -4156,29 +4402,28 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "MethodNodeTitlePalette" + "PaletteOverride": "DefaultNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 1420.0, - 200.0 + 600.0, + 100.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData", - "SubStyle": ".method" + "$type": "StylingComponentSaveData" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{26BE8EF6-5AEC-42D8-AC7F-D380B460242D}" + "PersistentId": "{FA508AFD-513D-4334-9760-909A9D4C765A}" } } } }, { "Key": { - "id": 70181150362498 + "id": 18935517545865 }, "Value": { "ComponentData": { @@ -4187,29 +4432,29 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "HandlerNodeTitlePalette" + "PaletteOverride": "MethodNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - -280.0, - 60.0 + 1420.0, + -300.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData", - "SubStyle": ".azeventhandler" + "SubStyle": ".method" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{752364F1-EDC4-42D0-82CB-84FFE27AE3BC}" + "PersistentId": "{453BE3A7-5198-45D2-A8C8-A343CAA048C1}" } } } }, { "Key": { - "id": 70185445329794 + "id": 18939812513161 }, "Value": { "ComponentData": { @@ -4218,29 +4463,28 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "HandlerNodeTitlePalette" + "PaletteOverride": "StringNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - -280.0, - 420.0 + 2000.0, + -160.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { - "$type": "StylingComponentSaveData", - "SubStyle": ".azeventhandler" + "$type": "StylingComponentSaveData" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{DFC56761-5B10-4D07-A98F-32E24DFA4649}" + "PersistentId": "{389C6D5B-CE48-4C06-9A9C-BF8A63B50375}" } } } }, { "Key": { - "id": 70189740297090 + "id": 18944107480457 }, "Value": { "ComponentData": { @@ -4249,22 +4493,22 @@ }, "{328FF15C-C302-458F-A43D-E1794DE0904E}": { "$type": "GeneralNodeTitleComponentSaveData", - "PaletteOverride": "LogicNodeTitlePalette" + "PaletteOverride": "MethodNodeTitlePalette" }, "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { "$type": "GeometrySaveData", "Position": [ - 1080.0, - 480.0 + -900.0, + 400.0 ] }, "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { "$type": "StylingComponentSaveData", - "SubStyle": ".logic" + "SubStyle": ".method" }, "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { "$type": "PersistentIdComponentSaveData", - "PersistentId": "{D09C8DAB-49A0-41CB-89D1-302EA305B161}" + "PersistentId": "{2DF9B4CD-AAD9-4BB8-B35A-6F0C68AB89BC}" } } } diff --git a/AutomatedTesting/Levels/Physics/ScriptCanvas_PreUpdateEvent/ScriptCanvas_PreUpdateEvent.ly b/AutomatedTesting/Levels/Physics/ScriptCanvas_PreUpdateEvent/ScriptCanvas_PreUpdateEvent.ly index 1b6fd04102..60cec8af58 100644 --- a/AutomatedTesting/Levels/Physics/ScriptCanvas_PreUpdateEvent/ScriptCanvas_PreUpdateEvent.ly +++ b/AutomatedTesting/Levels/Physics/ScriptCanvas_PreUpdateEvent/ScriptCanvas_PreUpdateEvent.ly @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a1e648464adab2e7d3218aa61888676f6f016d65bed18c303273986614fe9a7e -size 6703 +oid sha256:982f085cfb17ce957cd1534e89a6fb5c76bcbe6936caec214ecd422b0a5dbe7b +size 5214 diff --git a/AutomatedTesting/ScriptCanvas/ScriptCanvas_PostUpdateEvent.scriptcanvas b/AutomatedTesting/ScriptCanvas/ScriptCanvas_PostUpdateEvent.scriptcanvas index 2db2f9c88f..bb497e3bf1 100644 --- a/AutomatedTesting/ScriptCanvas/ScriptCanvas_PostUpdateEvent.scriptcanvas +++ b/AutomatedTesting/ScriptCanvas/ScriptCanvas_PostUpdateEvent.scriptcanvas @@ -1,2356 +1,1441 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +{ + "Type": "JsonSerialization", + "Version": 1, + "ClassName": "ScriptCanvasData", + "ClassData": { + "m_scriptCanvas": { + "Id": { + "id": 7246990957034 + }, + "Name": "ScriptCanvas_PostUpdateEvent", + "Components": { + "Component_[7859303221537826322]": { + "$type": "EditorGraphVariableManagerComponent", + "Id": 7859303221537826322 + }, + "Component_[8048615284941550971]": { + "$type": "{4D755CA9-AB92-462C-B24F-0B3376F19967} Graph", + "Id": 8048615284941550971, + "m_graphData": { + "m_nodes": [ + { + "Id": { + "id": 7255580891626 + }, + "Name": "SC-EventNode(Postsimulate event)", + "Components": { + "Component_[1026420909310573434]": { + "$type": "AzEventHandler", + "Id": 1026420909310573434, + "Slots": [ + { + "id": { + "m_id": "{298E1FBB-EA4C-461A-BDBD-B143B6240DDA}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + { + "$type": "ConnectionLimitContract", + "limit": 1 + }, + { + "$type": "RestrictedNodeContract", + "m_nodeId": { + "id": 7259875858922 + } + } + ], + "slotName": "Connect", + "toolTip": "Connect the AZ Event to this AZ Event Handler.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{0AB59F20-FB04-4F9C-A48D-D2429A97345E}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Disconnect", + "toolTip": "Disconnect current AZ Event from this AZ Event Handler.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{A933624F-AD95-44B4-95C7-B72E948B28DE}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "On Connected", + "toolTip": "Signaled when a connection has taken place.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{81CFBC65-1257-4553-AADD-28941CA5A394}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "On Disconnected", + "toolTip": "Signaled when this event handler is disconnected.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{9412D23F-5C3C-4BAE-9434-FEF63C61D19F}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "OnEvent", + "toolTip": "Triggered when the AZ Event invokes Signal() function.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + }, + "IsLatent": true + }, + { + "id": { + "m_id": "{491F4CF1-420C-447C-9347-1286E513D99D}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null, + { + "$type": "ConnectionLimitContract", + "limit": 1 + }, + { + "$type": "RestrictedNodeContract", + "m_nodeId": { + "id": 7259875858922 + } + } + ], + "slotName": "Postsimulate event", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + } + ], + "Datums": [ + { + "isOverloadedStorage": false, + "scriptCanvasType": { + "m_type": 4, + "m_azType": "{F429F985-AF00-529B-8449-16E56694E5F9}" + }, + "isNullPointer": true, + "label": "Postsimulate event" + } + ], + "m_azEventEntry": { + "m_eventName": "Postsimulate event", + "m_eventSlotId": { + "m_id": "{491F4CF1-420C-447C-9347-1286E513D99D}" + } + } + } + } + }, + { + "Id": { + "id": 7264170826218 + }, + "Name": "SC-Node(SetWorldTranslation)", + "Components": { + "Component_[18174025885473549905]": { + "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", + "Id": 18174025885473549905, + "Slots": [ + { + "id": { + "m_id": "{517676CA-4595-4065-BEF3-6ACB6863E50D}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null + ], + "slotName": "EntityID: 0", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{903CDBDF-A22B-477B-AA16-8FDC81255835}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null + ], + "slotName": "Vector3: 1", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{6F5CB726-93B1-42EB-B489-2A9C4EEAE97A}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "In", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{8E82FC83-E0D2-42BB-864F-BE7F205CD4E9}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Out", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + } + ], + "Datums": [ + { + "isOverloadedStorage": false, + "scriptCanvasType": { + "m_type": 1 + }, + "isNullPointer": false, + "$type": "EntityId", + "value": { + "id": 2901262558 + }, + "label": "Source" + }, + { + "isOverloadedStorage": false, + "scriptCanvasType": { + "m_type": 8 + }, + "isNullPointer": false, + "$type": "Vector3", + "value": [ + 0.0, + 0.0, + 0.0 + ], + "label": "Translation" + } + ], + "methodType": 0, + "methodName": "SetWorldTranslation", + "className": "TransformBus", + "resultSlotIDs": [ + {} + ], + "prettyClassName": "TransformBus" + } + } + }, + { + "Id": { + "id": 7259875858922 + }, + "Name": "SC-Node(GetOnPostsimulateEvent)", + "Components": { + "Component_[2298887429127007522]": { + "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", + "Id": 2298887429127007522, + "Slots": [ + { + "id": { + "m_id": "{8B02A209-89DE-40B9-882E-851A1C82CFEE}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "In", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{F2AFC1DB-F1B3-4A0A-ABC4-FAFB09CC0EDB}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Out", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{5331CDE9-F1F6-4EA0-A8E8-DCB099CF5212}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Result: Event<>", + "DisplayDataType": { + "m_type": 4, + "m_azType": "{F429F985-AF00-529B-8449-16E56694E5F9}" + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + } + ], + "methodType": 2, + "methodName": "GetOnPostsimulateEvent", + "className": "PhysicsSystemInterface", + "resultSlotIDs": [ + {} + ], + "prettyClassName": "PhysicsSystemInterface" + } + } + }, + { + "Id": { + "id": 7268465793514 + }, + "Name": "EBusEventHandler", + "Components": { + "Component_[2481096262197714664]": { + "$type": "EBusEventHandler", + "Id": 2481096262197714664, + "Slots": [ + { + "id": { + "m_id": "{6AFF8E96-F047-4379-93F7-A1E3A0DEA69C}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Connect", + "toolTip": "Connect this event handler to the specified entity.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{5261B1DD-E9A8-470F-8CC4-68ADDB423CB5}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Disconnect", + "toolTip": "Disconnect this event handler.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{52AAD5FF-EB9B-49E4-BE42-5776A21B9676}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "OnConnected", + "toolTip": "Signaled when a connection has taken place.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{A1D62B65-5AC4-4D3E-8F26-4EE6BE9A3A3C}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "OnDisconnected", + "toolTip": "Signaled when this event handler is disconnected.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{EDA8F8A0-47A4-4359-AB6D-A6B7317CF57C}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "OnFailure", + "toolTip": "Signaled when it is not possible to connect this handler.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{5F7A39A0-01D0-4ED5-B6D4-F16D16E367FE}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null + ], + "slotName": "Source", + "toolTip": "ID used to connect on a specific Event address (Type: EntityId)", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{FEBDC32A-663D-4C24-9490-E47AE860ED35}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "EntityID", + "DisplayDataType": { + "m_type": 1 + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{A2CD891C-F7F3-4F87-95C6-3F08456A39C8}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "ExecutionSlot:OnEntityActivated", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + }, + "IsLatent": true + }, + { + "id": { + "m_id": "{BA3D7E71-5ED0-419E-89CC-BED3BB49EB99}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "EntityID", + "DisplayDataType": { + "m_type": 1 + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{04DDA62D-DEB6-4106-8AB5-3320F4497DBA}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "ExecutionSlot:OnEntityDeactivated", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + }, + "IsLatent": true + } + ], + "Datums": [ + { + "isOverloadedStorage": false, + "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": "{A2CD891C-F7F3-4F87-95C6-3F08456A39C8}" + }, + "m_parameterSlotIds": [ + { + "m_id": "{FEBDC32A-663D-4C24-9490-E47AE860ED35}" + } + ], + "m_numExpectedArguments": 1 + } + }, + { + "Key": { + "Value": 4273369222 + }, + "Value": { + "m_eventName": "OnEntityDeactivated", + "m_eventId": { + "Value": 4273369222 + }, + "m_eventSlotId": { + "m_id": "{04DDA62D-DEB6-4106-8AB5-3320F4497DBA}" + }, + "m_parameterSlotIds": [ + { + "m_id": "{BA3D7E71-5ED0-419E-89CC-BED3BB49EB99}" + } + ], + "m_numExpectedArguments": 1 + } + } + ], + "m_ebusName": "EntityBus", + "m_busId": { + "Value": 3358774020 + } + } + } + }, + { + "Id": { + "id": 7251285924330 + }, + "Name": "SC-Node(OperatorAdd)", + "Components": { + "Component_[2947356292726636849]": { + "$type": "OperatorAdd", + "Id": 2947356292726636849, + "Slots": [ + { + "id": { + "m_id": "{365919DD-D8DE-4209-A5B7-1EBF1B84E58C}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "In", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{4A7D3757-64E3-47D7-B7AF-B27165154631}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Out", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{1BDE6B10-A2C0-42D3-B954-EC8F756D9854}" + }, + "DynamicTypeOverride": 3, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null, + { + "$type": "MathOperatorContract", + "NativeTypes": [ + { + "m_type": 3 + }, + { + "m_type": 6 + }, + { + "m_type": 8 + }, + { + "m_type": 9 + }, + { + "m_type": 10 + }, + { + "m_type": 11 + }, + { + "m_type": 12 + }, + { + "m_type": 14 + }, + { + "m_type": 15 + } + ] + } + ], + "slotName": "Vector3", + "toolTip": "An operand to use in performing the specified Operation", + "DisplayDataType": { + "m_type": 8 + }, + "DisplayGroup": { + "Value": 1114760223 + }, + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DynamicGroup": { + "Value": 1114760223 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{6DF37237-B149-4FC4-8FF8-245ECCFBC542}" + }, + "DynamicTypeOverride": 3, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null, + { + "$type": "MathOperatorContract", + "NativeTypes": [ + { + "m_type": 3 + }, + { + "m_type": 6 + }, + { + "m_type": 8 + }, + { + "m_type": 9 + }, + { + "m_type": 10 + }, + { + "m_type": 11 + }, + { + "m_type": 12 + }, + { + "m_type": 14 + }, + { + "m_type": 15 + } + ] + } + ], + "slotName": "Vector3", + "toolTip": "An operand to use in performing the specified Operation", + "DisplayDataType": { + "m_type": 8 + }, + "DisplayGroup": { + "Value": 1114760223 + }, + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DynamicGroup": { + "Value": 1114760223 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{982F1726-1327-49B5-BEB1-D64D9FC7C0D6}" + }, + "DynamicTypeOverride": 3, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + { + "$type": "MathOperatorContract", + "NativeTypes": [ + { + "m_type": 3 + }, + { + "m_type": 6 + }, + { + "m_type": 8 + }, + { + "m_type": 9 + }, + { + "m_type": 10 + }, + { + "m_type": 11 + }, + { + "m_type": 12 + }, + { + "m_type": 14 + }, + { + "m_type": 15 + } + ] + } + ], + "slotName": "Result", + "toolTip": "The result of the specified operation", + "DisplayDataType": { + "m_type": 8 + }, + "DisplayGroup": { + "Value": 1114760223 + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DynamicGroup": { + "Value": 1114760223 + }, + "DataType": 1 + } + ], + "Datums": [ + { + "isOverloadedStorage": false, + "scriptCanvasType": { + "m_type": 8 + }, + "isNullPointer": false, + "$type": "Vector3", + "value": [ + 0.0, + 0.0, + 0.0 + ], + "label": "Vector3" + }, + { + "isOverloadedStorage": false, + "scriptCanvasType": { + "m_type": 8 + }, + "isNullPointer": false, + "$type": "Vector3", + "value": [ + -1.0, + 0.0, + 0.0 + ], + "label": "Vector3" + } + ] + } + } + }, + { + "Id": { + "id": 7272760760810 + }, + "Name": "SC-Node(GetWorldTranslation)", + "Components": { + "Component_[7906397568238626559]": { + "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", + "Id": 7906397568238626559, + "Slots": [ + { + "id": { + "m_id": "{4D8E536D-BAF4-4AAC-A88E-6B082D58420A}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null + ], + "slotName": "EntityID: 0", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{8D0B9B7A-415D-44B1-B66F-A6C859CDF068}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "In", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{1225D555-C7F9-45E8-B625-A2FFC71A60D6}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Result: Vector3", + "DisplayDataType": { + "m_type": 8 + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{EEBEB400-B5D6-4025-87D8-3DE1EFCCE26A}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Out", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + } + ], + "Datums": [ + { + "isOverloadedStorage": false, + "scriptCanvasType": { + "m_type": 1 + }, + "isNullPointer": false, + "$type": "EntityId", + "value": { + "id": 281697622333 + }, + "label": "Source" + } + ], + "methodType": 0, + "methodName": "GetWorldTranslation", + "className": "TransformBus", + "resultSlotIDs": [ + { + "m_id": "{1225D555-C7F9-45E8-B625-A2FFC71A60D6}" + } + ], + "prettyClassName": "TransformBus" + } + } + } + ], + "m_connections": [ + { + "Id": { + "id": 7277055728106 + }, + "Name": "srcEndpoint=(GetWorldTranslation: Result: Vector3), destEndpoint=(Add (+): Value)", + "Components": { + "Component_[242178999561252379]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 242178999561252379, + "sourceEndpoint": { + "nodeId": { + "id": 7272760760810 + }, + "slotId": { + "m_id": "{1225D555-C7F9-45E8-B625-A2FFC71A60D6}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 7251285924330 + }, + "slotId": { + "m_id": "{1BDE6B10-A2C0-42D3-B954-EC8F756D9854}" + } + } + } + } + }, + { + "Id": { + "id": 7281350695402 + }, + "Name": "srcEndpoint=(GetWorldTranslation: Out), destEndpoint=(Add (+): In)", + "Components": { + "Component_[3863909945377931474]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 3863909945377931474, + "sourceEndpoint": { + "nodeId": { + "id": 7272760760810 + }, + "slotId": { + "m_id": "{EEBEB400-B5D6-4025-87D8-3DE1EFCCE26A}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 7251285924330 + }, + "slotId": { + "m_id": "{365919DD-D8DE-4209-A5B7-1EBF1B84E58C}" + } + } + } + } + }, + { + "Id": { + "id": 7285645662698 + }, + "Name": "srcEndpoint=(Add (+): Out), destEndpoint=(SetWorldTranslation: In)", + "Components": { + "Component_[11373809959868110927]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 11373809959868110927, + "sourceEndpoint": { + "nodeId": { + "id": 7251285924330 + }, + "slotId": { + "m_id": "{4A7D3757-64E3-47D7-B7AF-B27165154631}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 7264170826218 + }, + "slotId": { + "m_id": "{6F5CB726-93B1-42EB-B489-2A9C4EEAE97A}" + } + } + } + } + }, + { + "Id": { + "id": 7289940629994 + }, + "Name": "srcEndpoint=(Add (+): Result), destEndpoint=(SetWorldTranslation: Vector3: 1)", + "Components": { + "Component_[6872695239256977190]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 6872695239256977190, + "sourceEndpoint": { + "nodeId": { + "id": 7251285924330 + }, + "slotId": { + "m_id": "{982F1726-1327-49B5-BEB1-D64D9FC7C0D6}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 7264170826218 + }, + "slotId": { + "m_id": "{903CDBDF-A22B-477B-AA16-8FDC81255835}" + } + } + } + } + }, + { + "Id": { + "id": 7294235597290 + }, + "Name": "srcEndpoint=(GetOnPostsimulateEvent: Result: Event<>), destEndpoint=(Postsimulate event: Postsimulate event)", + "Components": { + "Component_[14941476969640620853]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 14941476969640620853, + "sourceEndpoint": { + "nodeId": { + "id": 7259875858922 + }, + "slotId": { + "m_id": "{5331CDE9-F1F6-4EA0-A8E8-DCB099CF5212}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 7255580891626 + }, + "slotId": { + "m_id": "{491F4CF1-420C-447C-9347-1286E513D99D}" + } + } + } + } + }, + { + "Id": { + "id": 7298530564586 + }, + "Name": "srcEndpoint=(GetOnPostsimulateEvent: Out), destEndpoint=(Postsimulate event: Connect)", + "Components": { + "Component_[14053430938252148760]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 14053430938252148760, + "sourceEndpoint": { + "nodeId": { + "id": 7259875858922 + }, + "slotId": { + "m_id": "{F2AFC1DB-F1B3-4A0A-ABC4-FAFB09CC0EDB}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 7255580891626 + }, + "slotId": { + "m_id": "{298E1FBB-EA4C-461A-BDBD-B143B6240DDA}" + } + } + } + } + }, + { + "Id": { + "id": 7302825531882 + }, + "Name": "srcEndpoint=(EntityBus Handler: ExecutionSlot:OnEntityActivated), destEndpoint=(GetOnPostsimulateEvent: In)", + "Components": { + "Component_[2413811060506403971]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 2413811060506403971, + "sourceEndpoint": { + "nodeId": { + "id": 7268465793514 + }, + "slotId": { + "m_id": "{A2CD891C-F7F3-4F87-95C6-3F08456A39C8}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 7259875858922 + }, + "slotId": { + "m_id": "{8B02A209-89DE-40B9-882E-851A1C82CFEE}" + } + } + } + } + }, + { + "Id": { + "id": 7307120499178 + }, + "Name": "srcEndpoint=(Postsimulate event: OnEvent), destEndpoint=(GetWorldTranslation: In)", + "Components": { + "Component_[1592781785499451182]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 1592781785499451182, + "sourceEndpoint": { + "nodeId": { + "id": 7255580891626 + }, + "slotId": { + "m_id": "{9412D23F-5C3C-4BAE-9434-FEF63C61D19F}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 7272760760810 + }, + "slotId": { + "m_id": "{8D0B9B7A-415D-44B1-B66F-A6C859CDF068}" + } + } + } + } + } + ] + }, + "m_assetType": "{3E2AC8CD-713F-453E-967F-29517F331784}", + "versionData": { + "_grammarVersion": 1, + "_runtimeVersion": 1 + }, + "GraphCanvasData": [ + { + "Key": { + "id": 7246990957034 + }, + "Value": { + "ComponentData": { + "{5F84B500-8C45-40D1-8EFC-A5306B241444}": { + "$type": "SceneComponentSaveData", + "ViewParams": { + "Scale": 1.0498028, + "AnchorX": -413.4109802246094, + "AnchorY": -143.83653259277344 + } + } + } + } + }, + { + "Key": { + "id": 7251285924330 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "MathNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + 640.0, + 120.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{21EF1E23-A534-4534-8AAE-E750DD0BB42F}" + } + } + } + }, + { + "Key": { + "id": 7255580891626 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "HandlerNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + -140.0, + 80.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData", + "SubStyle": ".azeventhandler" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{5BF8EBFB-0DC5-4708-B618-671B47FB9B94}" + } + } + } + }, + { + "Key": { + "id": 7259875858922 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "MethodNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + -500.0, + 100.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData", + "SubStyle": ".method" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{8FD53D85-4783-4AAB-B779-6C03BAD63717}" + } + } + } + }, + { + "Key": { + "id": 7264170826218 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "MethodNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + 1100.0, + 120.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData", + "SubStyle": ".method" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{A6FDC96D-8B0B-4B9E-84CF-A4A6DA49FF2D}" + } + } + } + }, + { + "Key": { + "id": 7268465793514 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + -880.0, + 40.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": "{ABEA26C6-312E-4CDB-A78B-22FFFD0C1621}" + } + } + } + }, + { + "Key": { + "id": 7272760760810 + }, + "Value": { + "ComponentData": { + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "MethodNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + 180.0, + 120.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData", + "SubStyle": ".method" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{9CC9588E-0054-4615-B627-F8D04CAD5970}" + } + } + } + } + ], + "CRCCacheMap": [ + { + "Key": { + "Value": 418594340 + }, + "Value": { + "String": "AZPhysicalWorld", + "Count": 1 + } + }, + { + "Key": { + "Value": 3249382599 + }, + "Value": { + "String": "DefaultScene", + "Count": 1 + } + } + ], + "StatisticsHelper": { + "InstanceCounter": [ + { + "Key": 1244476766431948410, + "Value": 1 + }, + { + "Key": 4847610523576971761, + "Value": 1 + }, + { + "Key": 5842116761103598202, + "Value": 1 + }, + { + "Key": 6332589079726754678, + "Value": 1 + }, + { + "Key": 13774516554886911373, + "Value": 1 + }, + { + "Key": 13774516556399355685, + "Value": 1 + } + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/AutomatedTesting/ScriptCanvas/ScriptCanvas_PreUpdateEvent.scriptcanvas b/AutomatedTesting/ScriptCanvas/ScriptCanvas_PreUpdateEvent.scriptcanvas index f355b3e6e9..0cfb3c8c48 100644 --- a/AutomatedTesting/ScriptCanvas/ScriptCanvas_PreUpdateEvent.scriptcanvas +++ b/AutomatedTesting/ScriptCanvas/ScriptCanvas_PreUpdateEvent.scriptcanvas @@ -1,2417 +1,1494 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +{ + "Type": "JsonSerialization", + "Version": 1, + "ClassName": "ScriptCanvasData", + "ClassData": { + "m_scriptCanvas": { + "Id": { + "id": 80662787523977 + }, + "Name": "ScriptCanvas_PreUpdateEvent", + "Components": { + "Component_[7859303221537826322]": { + "$type": "EditorGraphVariableManagerComponent", + "Id": 7859303221537826322 + }, + "Component_[8048615284941550971]": { + "$type": "{4D755CA9-AB92-462C-B24F-0B3376F19967} Graph", + "Id": 8048615284941550971, + "m_graphData": { + "m_nodes": [ + { + "Id": { + "id": 80688557327753 + }, + "Name": "EBusEventHandler", + "Components": { + "Component_[10194282752280979681]": { + "$type": "EBusEventHandler", + "Id": 10194282752280979681, + "Slots": [ + { + "id": { + "m_id": "{E76AE1C2-5BE0-4CEA-B2A1-6B5599877A53}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Connect", + "toolTip": "Connect this event handler to the specified entity.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{D55DEAE2-7FE4-4154-B91A-C392E6450BAE}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Disconnect", + "toolTip": "Disconnect this event handler.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{16B87363-9D49-4344-88D2-743E51706A64}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "OnConnected", + "toolTip": "Signaled when a connection has taken place.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{C354C37D-B6FD-4E17-95CA-4EB7B3F75AD9}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "OnDisconnected", + "toolTip": "Signaled when this event handler is disconnected.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{CA917050-D510-4B13-8158-71C72A56B55B}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "OnFailure", + "toolTip": "Signaled when it is not possible to connect this handler.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{895BFE09-55D1-4AB7-AB6D-7D7EDC8AB27F}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null + ], + "slotName": "Source", + "toolTip": "ID used to connect on a specific Event address (Type: EntityId)", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{94B92BA7-AD10-4370-8004-37D6BA6140D0}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "EntityID", + "DisplayDataType": { + "m_type": 1 + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{6AAE0625-E567-448A-85EC-002727CB0C9B}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "ExecutionSlot:OnEntityActivated", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + }, + "IsLatent": true + }, + { + "id": { + "m_id": "{78A7A34E-7605-42A6-AFDA-B8F33CC997F4}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "EntityID", + "DisplayDataType": { + "m_type": 1 + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{639510EC-C5CD-442E-9585-DD0014642379}" + }, + "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": "{6AAE0625-E567-448A-85EC-002727CB0C9B}" + }, + "m_parameterSlotIds": [ + { + "m_id": "{94B92BA7-AD10-4370-8004-37D6BA6140D0}" + } + ], + "m_numExpectedArguments": 1 + } + }, + { + "Key": { + "Value": 4273369222 + }, + "Value": { + "m_eventName": "OnEntityDeactivated", + "m_eventId": { + "Value": 4273369222 + }, + "m_eventSlotId": { + "m_id": "{639510EC-C5CD-442E-9585-DD0014642379}" + }, + "m_parameterSlotIds": [ + { + "m_id": "{78A7A34E-7605-42A6-AFDA-B8F33CC997F4}" + } + ], + "m_numExpectedArguments": 1 + } + } + ], + "m_ebusName": "EntityBus", + "m_busId": { + "Value": 3358774020 + } + } + } + }, + { + "Id": { + "id": 80684262360457 + }, + "Name": "SC-Node(GetOnPresimulateEvent)", + "Components": { + "Component_[10220237333641525118]": { + "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", + "Id": 10220237333641525118, + "Slots": [ + { + "id": { + "m_id": "{671D1A67-1F82-4BB4-9287-099AA81073DF}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "In", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{235F1C50-06B0-4793-BD83-C9F3E8B28479}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Out", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{13AE2AAB-FBEB-4851-A148-325652B1FDC1}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Result: Event", + "DisplayDataType": { + "m_type": 4, + "m_azType": "{F0A3166F-115C-5C3E-8D65-28FBA4420028}" + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + } + ], + "methodType": 2, + "methodName": "GetOnPresimulateEvent", + "className": "PhysicsSystemInterface", + "resultSlotIDs": [ + {} + ], + "prettyClassName": "PhysicsSystemInterface" + } + } + }, + { + "Id": { + "id": 80675672425865 + }, + "Name": "SC-Node(OperatorAdd)", + "Components": { + "Component_[11406838928576978587]": { + "$type": "OperatorAdd", + "Id": 11406838928576978587, + "Slots": [ + { + "id": { + "m_id": "{F2AB1C73-D779-4306-A336-96D085EFD20C}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "In", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{8C84B74E-F975-4957-8039-19E7719327AD}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Out", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{0B1A1CA1-9D6A-4402-8953-E62C9329D70A}" + }, + "DynamicTypeOverride": 3, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null, + { + "$type": "MathOperatorContract", + "NativeTypes": [ + { + "m_type": 3 + }, + { + "m_type": 6 + }, + { + "m_type": 8 + }, + { + "m_type": 9 + }, + { + "m_type": 10 + }, + { + "m_type": 11 + }, + { + "m_type": 12 + }, + { + "m_type": 14 + }, + { + "m_type": 15 + } + ] + } + ], + "slotName": "Vector3", + "toolTip": "An operand to use in performing the specified Operation", + "DisplayDataType": { + "m_type": 8 + }, + "DisplayGroup": { + "Value": 1114760223 + }, + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DynamicGroup": { + "Value": 1114760223 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{D9E65807-CFEA-4848-A7DB-DEFF328E1100}" + }, + "DynamicTypeOverride": 3, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null, + { + "$type": "MathOperatorContract", + "NativeTypes": [ + { + "m_type": 3 + }, + { + "m_type": 6 + }, + { + "m_type": 8 + }, + { + "m_type": 9 + }, + { + "m_type": 10 + }, + { + "m_type": 11 + }, + { + "m_type": 12 + }, + { + "m_type": 14 + }, + { + "m_type": 15 + } + ] + } + ], + "slotName": "Vector3", + "toolTip": "An operand to use in performing the specified Operation", + "DisplayDataType": { + "m_type": 8 + }, + "DisplayGroup": { + "Value": 1114760223 + }, + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DynamicGroup": { + "Value": 1114760223 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{540EF6ED-F6B9-4BCE-A7A9-8271DE09E28E}" + }, + "DynamicTypeOverride": 3, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + { + "$type": "MathOperatorContract", + "NativeTypes": [ + { + "m_type": 3 + }, + { + "m_type": 6 + }, + { + "m_type": 8 + }, + { + "m_type": 9 + }, + { + "m_type": 10 + }, + { + "m_type": 11 + }, + { + "m_type": 12 + }, + { + "m_type": 14 + }, + { + "m_type": 15 + } + ] + } + ], + "slotName": "Result", + "toolTip": "The result of the specified operation", + "DisplayDataType": { + "m_type": 8 + }, + "DisplayGroup": { + "Value": 1114760223 + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DynamicGroup": { + "Value": 1114760223 + }, + "DataType": 1 + } + ], + "Datums": [ + { + "scriptCanvasType": { + "m_type": 8 + }, + "isNullPointer": false, + "$type": "Vector3", + "value": [ + 0.0, + 0.0, + 0.0 + ], + "label": "Vector3" + }, + { + "scriptCanvasType": { + "m_type": 8 + }, + "isNullPointer": false, + "$type": "Vector3", + "value": [ + -1.0, + 0.0, + 0.0 + ], + "label": "Vector3" + } + ] + } + } + }, + { + "Id": { + "id": 80671377458569 + }, + "Name": "SC-Node(SetWorldTranslation)", + "Components": { + "Component_[18174025885473549905]": { + "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", + "Id": 18174025885473549905, + "Slots": [ + { + "id": { + "m_id": "{517676CA-4595-4065-BEF3-6ACB6863E50D}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null + ], + "slotName": "EntityID: 0", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{903CDBDF-A22B-477B-AA16-8FDC81255835}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null + ], + "slotName": "Vector3: 1", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{6F5CB726-93B1-42EB-B489-2A9C4EEAE97A}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "In", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{8E82FC83-E0D2-42BB-864F-BE7F205CD4E9}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Out", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + } + ], + "Datums": [ + { + "scriptCanvasType": { + "m_type": 1 + }, + "isNullPointer": false, + "$type": "EntityId", + "value": { + "id": 2901262558 + }, + "label": "Source" + }, + { + "scriptCanvasType": { + "m_type": 8 + }, + "isNullPointer": false, + "$type": "Vector3", + "value": [ + 0.0, + 0.0, + 0.0 + ], + "label": "Translation" + } + ], + "methodType": 0, + "methodName": "SetWorldTranslation", + "className": "TransformBus", + "resultSlotIDs": [ + {} + ], + "prettyClassName": "TransformBus" + } + } + }, + { + "Id": { + "id": 80667082491273 + }, + "Name": "SC-Node(GetWorldTranslation)", + "Components": { + "Component_[7906397568238626559]": { + "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method", + "Id": 7906397568238626559, + "Slots": [ + { + "id": { + "m_id": "{4D8E536D-BAF4-4AAC-A88E-6B082D58420A}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null + ], + "slotName": "EntityID: 0", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{8D0B9B7A-415D-44B1-B66F-A6C859CDF068}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "In", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{1225D555-C7F9-45E8-B625-A2FFC71A60D6}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Result: Vector3", + "DisplayDataType": { + "m_type": 8 + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{EEBEB400-B5D6-4025-87D8-3DE1EFCCE26A}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Out", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + } + ], + "Datums": [ + { + "scriptCanvasType": { + "m_type": 1 + }, + "isNullPointer": false, + "$type": "EntityId", + "value": { + "id": 284799455595 + }, + "label": "Source" + } + ], + "methodType": 0, + "methodName": "GetWorldTranslation", + "className": "TransformBus", + "resultSlotIDs": [ + { + "m_id": "{1225D555-C7F9-45E8-B625-A2FFC71A60D6}" + } + ], + "prettyClassName": "TransformBus" + } + } + }, + { + "Id": { + "id": 80679967393161 + }, + "Name": "SC-EventNode(Presimulate event)", + "Components": { + "Component_[9821965988545835220]": { + "$type": "AzEventHandler", + "Id": 9821965988545835220, + "Slots": [ + { + "id": { + "m_id": "{785642C6-C68F-4C78-B388-DB2032C55B8B}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + { + "$type": "ConnectionLimitContract", + "limit": 1 + }, + { + "$type": "RestrictedNodeContract", + "m_nodeId": { + "id": 80684262360457 + } + } + ], + "slotName": "Connect", + "toolTip": "Connect the AZ Event to this AZ Event Handler.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{57857370-96BF-4C14-973A-E11CD3ACEE2F}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Disconnect", + "toolTip": "Disconnect current AZ Event from this AZ Event Handler.", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{D4C449D4-34FF-4478-A429-7577FFF9A4D0}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "On Connected", + "toolTip": "Signaled when a connection has taken place.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{A5BADE33-9F5F-494F-95F8-0B88B307F243}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "On Disconnected", + "toolTip": "Signaled when this event handler is disconnected.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + } + }, + { + "id": { + "m_id": "{CECB84BC-6AC2-4C51-A38A-63FE7E01A056}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "OnEvent", + "toolTip": "Triggered when the AZ Event invokes Signal() function.", + "Descriptor": { + "ConnectionType": 2, + "SlotType": 1 + }, + "IsLatent": true + }, + { + "id": { + "m_id": "{141AA0B1-CA62-45CF-9ED2-FB55354FA26F}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + } + ], + "slotName": "Tick time", + "DisplayDataType": { + "m_type": 3 + }, + "Descriptor": { + "ConnectionType": 2, + "SlotType": 2 + }, + "DataType": 1 + }, + { + "id": { + "m_id": "{477D1D40-3833-46BB-8DC7-E4DCCF688E99}" + }, + "contracts": [ + { + "$type": "SlotTypeContract" + }, + null, + { + "$type": "ConnectionLimitContract", + "limit": 1 + }, + { + "$type": "RestrictedNodeContract", + "m_nodeId": { + "id": 80684262360457 + } + } + ], + "slotName": "Presimulate event", + "Descriptor": { + "ConnectionType": 1, + "SlotType": 2 + }, + "DataType": 1 + } + ], + "Datums": [ + { + "scriptCanvasType": { + "m_type": 4, + "m_azType": "{F0A3166F-115C-5C3E-8D65-28FBA4420028}" + }, + "isNullPointer": true, + "label": "Presimulate event" + } + ], + "m_azEventEntry": { + "m_eventName": "Presimulate event", + "m_parameterSlotIds": [ + { + "m_id": "{141AA0B1-CA62-45CF-9ED2-FB55354FA26F}" + }, + { + "m_id": "{141AA0B1-CA62-45CF-9ED2-FB55354FA26F}" + }, + { + "m_id": "{141AA0B1-CA62-45CF-9ED2-FB55354FA26F}" + }, + { + "m_id": "{141AA0B1-CA62-45CF-9ED2-FB55354FA26F}" + } + ], + "m_parameterNames": [ + { + "m_id": "{141AA0B1-CA62-45CF-9ED2-FB55354FA26F}" + }, + { + "m_id": "{141AA0B1-CA62-45CF-9ED2-FB55354FA26F}" + }, + { + "m_id": "{141AA0B1-CA62-45CF-9ED2-FB55354FA26F}" + }, + { + "m_id": "{141AA0B1-CA62-45CF-9ED2-FB55354FA26F}" + } + ], + "m_eventSlotId": { + "m_id": "{477D1D40-3833-46BB-8DC7-E4DCCF688E99}" + } + } + } + } + } + ], + "m_connections": [ + { + "Id": { + "id": 80692852295049 + }, + "Name": "srcEndpoint=(GetWorldTranslation: Result: Vector3), destEndpoint=(Add (+): Value)", + "Components": { + "Component_[14061883664044186409]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 14061883664044186409, + "sourceEndpoint": { + "nodeId": { + "id": 80667082491273 + }, + "slotId": { + "m_id": "{1225D555-C7F9-45E8-B625-A2FFC71A60D6}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 80675672425865 + }, + "slotId": { + "m_id": "{0B1A1CA1-9D6A-4402-8953-E62C9329D70A}" + } + } + } + } + }, + { + "Id": { + "id": 80697147262345 + }, + "Name": "srcEndpoint=(GetWorldTranslation: Out), destEndpoint=(Add (+): In)", + "Components": { + "Component_[9507558893143824342]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 9507558893143824342, + "sourceEndpoint": { + "nodeId": { + "id": 80667082491273 + }, + "slotId": { + "m_id": "{EEBEB400-B5D6-4025-87D8-3DE1EFCCE26A}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 80675672425865 + }, + "slotId": { + "m_id": "{F2AB1C73-D779-4306-A336-96D085EFD20C}" + } + } + } + } + }, + { + "Id": { + "id": 80701442229641 + }, + "Name": "srcEndpoint=(Add (+): Out), destEndpoint=(SetWorldTranslation: In)", + "Components": { + "Component_[15133880696098216097]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 15133880696098216097, + "sourceEndpoint": { + "nodeId": { + "id": 80675672425865 + }, + "slotId": { + "m_id": "{8C84B74E-F975-4957-8039-19E7719327AD}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 80671377458569 + }, + "slotId": { + "m_id": "{6F5CB726-93B1-42EB-B489-2A9C4EEAE97A}" + } + } + } + } + }, + { + "Id": { + "id": 80705737196937 + }, + "Name": "srcEndpoint=(Add (+): Result), destEndpoint=(SetWorldTranslation: Vector3: 1)", + "Components": { + "Component_[11733116393313919050]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 11733116393313919050, + "sourceEndpoint": { + "nodeId": { + "id": 80675672425865 + }, + "slotId": { + "m_id": "{540EF6ED-F6B9-4BCE-A7A9-8271DE09E28E}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 80671377458569 + }, + "slotId": { + "m_id": "{903CDBDF-A22B-477B-AA16-8FDC81255835}" + } + } + } + } + }, + { + "Id": { + "id": 80710032164233 + }, + "Name": "srcEndpoint=(GetOnPresimulateEvent: Result: Event), destEndpoint=(Presimulate event: Presimulate event)", + "Components": { + "Component_[8351382586130482188]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 8351382586130482188, + "sourceEndpoint": { + "nodeId": { + "id": 80684262360457 + }, + "slotId": { + "m_id": "{13AE2AAB-FBEB-4851-A148-325652B1FDC1}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 80679967393161 + }, + "slotId": { + "m_id": "{477D1D40-3833-46BB-8DC7-E4DCCF688E99}" + } + } + } + } + }, + { + "Id": { + "id": 80714327131529 + }, + "Name": "srcEndpoint=(GetOnPresimulateEvent: Out), destEndpoint=(Presimulate event: Connect)", + "Components": { + "Component_[14628666297034614869]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 14628666297034614869, + "sourceEndpoint": { + "nodeId": { + "id": 80684262360457 + }, + "slotId": { + "m_id": "{235F1C50-06B0-4793-BD83-C9F3E8B28479}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 80679967393161 + }, + "slotId": { + "m_id": "{785642C6-C68F-4C78-B388-DB2032C55B8B}" + } + } + } + } + }, + { + "Id": { + "id": 80718622098825 + }, + "Name": "srcEndpoint=(EntityBus Handler: ExecutionSlot:OnEntityActivated), destEndpoint=(GetOnPresimulateEvent: In)", + "Components": { + "Component_[16571789671982644265]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 16571789671982644265, + "sourceEndpoint": { + "nodeId": { + "id": 80688557327753 + }, + "slotId": { + "m_id": "{6AAE0625-E567-448A-85EC-002727CB0C9B}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 80684262360457 + }, + "slotId": { + "m_id": "{671D1A67-1F82-4BB4-9287-099AA81073DF}" + } + } + } + } + }, + { + "Id": { + "id": 80722917066121 + }, + "Name": "srcEndpoint=(Presimulate event: OnEvent), destEndpoint=(GetWorldTranslation: In)", + "Components": { + "Component_[2247867446063002806]": { + "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection", + "Id": 2247867446063002806, + "sourceEndpoint": { + "nodeId": { + "id": 80679967393161 + }, + "slotId": { + "m_id": "{CECB84BC-6AC2-4C51-A38A-63FE7E01A056}" + } + }, + "targetEndpoint": { + "nodeId": { + "id": 80667082491273 + }, + "slotId": { + "m_id": "{8D0B9B7A-415D-44B1-B66F-A6C859CDF068}" + } + } + } + } + } + ] + }, + "m_assetType": "{3E2AC8CD-713F-453E-967F-29517F331784}", + "versionData": { + "_grammarVersion": 1, + "_runtimeVersion": 1 + }, + "m_variableCounter": 2, + "GraphCanvasData": [ + { + "Key": { + "id": 80662787523977 + }, + "Value": { + "ComponentData": { + "{5F84B500-8C45-40D1-8EFC-A5306B241444}": { + "$type": "SceneComponentSaveData", + "ViewParams": { + "Scale": 0.7791539, + "AnchorX": -1672.326904296875, + "AnchorY": -143.74566650390625 + } + } + } + } + }, + { + "Key": { + "id": 80667082491273 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "MethodNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + -1380.0, + 180.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData", + "SubStyle": ".method" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{9CC9588E-0054-4615-B627-F8D04CAD5970}" + } + } + } + }, + { + "Key": { + "id": 80671377458569 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "MethodNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + -400.0, + 160.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData", + "SubStyle": ".method" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{A6FDC96D-8B0B-4B9E-84CF-A4A6DA49FF2D}" + } + } + } + }, + { + "Key": { + "id": 80675672425865 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "MathNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + -860.0, + 140.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{45DAC3F8-C64F-4E4D-BEC5-E4E888D02A5B}" + } + } + } + }, + { + "Key": { + "id": 80679967393161 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "HandlerNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + -1720.0, + 140.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData", + "SubStyle": ".azeventhandler" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{23D34A34-DB1F-4E79-A120-B50777838FE0}" + } + } + } + }, + { + "Key": { + "id": 80684262360457 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{328FF15C-C302-458F-A43D-E1794DE0904E}": { + "$type": "GeneralNodeTitleComponentSaveData", + "PaletteOverride": "MethodNodeTitlePalette" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + -2080.0, + 140.0 + ] + }, + "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": { + "$type": "StylingComponentSaveData", + "SubStyle": ".method" + }, + "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": { + "$type": "PersistentIdComponentSaveData", + "PersistentId": "{A52D0EA0-17F9-4F50-BC1B-D89AF9E82C8F}" + } + } + } + }, + { + "Key": { + "id": 80688557327753 + }, + "Value": { + "ComponentData": { + "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": { + "$type": "NodeSaveData" + }, + "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": { + "$type": "GeometrySaveData", + "Position": [ + -2420.0, + 100.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": "{FBA5ADF8-A282-4C7F-A3FF-265E075EE6CA}" + } + } + } + } + ], + "CRCCacheMap": [ + { + "Key": { + "Value": 418594340 + }, + "Value": { + "String": "AZPhysicalWorld", + "Count": 3 + } + }, + { + "Key": { + "Value": 2381303867 + }, + "Value": { + "String": "Az", + "Count": 1 + } + }, + { + "Key": { + "Value": 3249382599 + }, + "Value": { + "String": "DefaultScene", + "Count": 1 + } + } + ], + "StatisticsHelper": { + "InstanceCounter": [ + { + "Key": 1244476766431948410, + "Value": 1 + }, + { + "Key": 4847610523576971761, + "Value": 1 + }, + { + "Key": 5842116761103598202, + "Value": 1 + }, + { + "Key": 13774516554886911373, + "Value": 1 + }, + { + "Key": 13774516556399355685, + "Value": 1 + }, + { + "Key": 16012451037867406043, + "Value": 1 + } + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/Code/Framework/AzManipulatorTestFramework/Source/IndirectManipulatorViewportInteraction.cpp b/Code/Framework/AzManipulatorTestFramework/Source/IndirectManipulatorViewportInteraction.cpp index 14723800ff..730c106301 100644 --- a/Code/Framework/AzManipulatorTestFramework/Source/IndirectManipulatorViewportInteraction.cpp +++ b/Code/Framework/AzManipulatorTestFramework/Source/IndirectManipulatorViewportInteraction.cpp @@ -40,6 +40,12 @@ namespace AzManipulatorTestFramework { m_viewportInteraction.UpdateVisibility(); + // ensure we call display viewport 2d to simulate this update step (some state may be + // updated here, e.g. box select) + AzFramework::ViewportDebugDisplayEventBus::Event( + AzToolsFramework::GetEntityContextId(), &AzFramework::ViewportDebugDisplayEvents::DisplayViewport2d, + AzFramework::ViewportInfo{ m_viewportInteraction.GetViewportId() }, m_viewportInteraction.GetDebugDisplay()); + DrawManipulators(); AzToolsFramework::EditorInteractionSystemViewportSelectionRequestBus::Event( AzToolsFramework::GetEntityContextId(), diff --git a/Code/Framework/AzToolsFramework/AzToolsFramework/Asset/AssetBundler.cpp b/Code/Framework/AzToolsFramework/AzToolsFramework/Asset/AssetBundler.cpp index 99d53f6c62..92334f404c 100644 --- a/Code/Framework/AzToolsFramework/AzToolsFramework/Asset/AssetBundler.cpp +++ b/Code/Framework/AzToolsFramework/AzToolsFramework/Asset/AssetBundler.cpp @@ -44,7 +44,7 @@ namespace AzToolsFramework const char AssetBundleSettingsFileExtension[] = "bundlesettings"; const char BundleFileExtension[] = "pak"; const char ComparisonRulesFileExtension[] = "rules"; - const char ErrorWindowName[] = "AssetBundler"; + [[maybe_unused]] const char ErrorWindowName[] = "AssetBundler"; const char* AssetFileInfoListComparison::ComparisonTypeNames[] = { "delta", "union", "intersection", "complement", "filepattern", "intersectioncount" }; const char* AssetFileInfoListComparison::FilePatternTypeNames[] = { "wildcard", "regex" }; const char DefaultTypeName[] = "default"; diff --git a/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorBoxSelect.cpp b/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorBoxSelect.cpp index c39b2c0ebc..eafd37f199 100644 --- a/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorBoxSelect.cpp +++ b/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorBoxSelect.cpp @@ -9,8 +9,8 @@ #include "EditorBoxSelect.h" #include -#include #include +#include #include @@ -19,11 +19,15 @@ namespace AzToolsFramework static const AZ::Color s_boxSelectColor = AZ::Color(1.0f, 1.0f, 1.0f, 0.4f); static const float s_boxSelectLineWidth = 2.0f; - void EditorBoxSelect::HandleMouseInteraction( - const ViewportInteraction::MouseInteractionEvent& mouseInteraction) + void EditorBoxSelect::HandleMouseInteraction(const ViewportInteraction::MouseInteractionEvent& mouseInteraction) { AZ_PROFILE_FUNCTION(AzToolsFramework); + if (mouseInteraction.m_mouseEvent == ViewportInteraction::MouseEvent::Down) + { + m_cursorPositionAtDownEvent = mouseInteraction.m_mouseInteraction.m_mousePick.m_screenCoordinates; + } + m_cursorState.SetCurrentPosition(mouseInteraction.m_mouseInteraction.m_mousePick.m_screenCoordinates); const auto selectClickEvent = ClickDetectorEventFromViewportInteraction(mouseInteraction); @@ -35,12 +39,7 @@ namespace AzToolsFramework m_leftMouseDown(mouseInteraction); } - m_boxSelectRegion = QRect - { - ViewportInteraction::QPointFromScreenPoint( - mouseInteraction.m_mouseInteraction.m_mousePick.m_screenCoordinates), - QSize { 0, 0 } - }; + m_boxSelectRegion = QRect{ ViewportInteraction::QPointFromScreenPoint(m_cursorPositionAtDownEvent), QSize{ 0, 0 } }; } if (m_boxSelectRegion) @@ -87,11 +86,11 @@ namespace AzToolsFramework AZ::Vector2 viewportSize = AzToolsFramework::GetCameraState(viewportInfo.m_viewportId).m_viewportSize; debugDisplay.DrawWireQuad2d( - AZ::Vector2( - aznumeric_cast(m_boxSelectRegion->x()), aznumeric_cast(m_boxSelectRegion->y())) / viewportSize, + AZ::Vector2(aznumeric_cast(m_boxSelectRegion->x()), aznumeric_cast(m_boxSelectRegion->y())) / viewportSize, AZ::Vector2( aznumeric_cast(m_boxSelectRegion->x()) + aznumeric_cast(m_boxSelectRegion->width()), - aznumeric_cast(m_boxSelectRegion->y()) + aznumeric_cast(m_boxSelectRegion->height())) / viewportSize, + aznumeric_cast(m_boxSelectRegion->y()) + aznumeric_cast(m_boxSelectRegion->height())) / + viewportSize, 0.f); debugDisplay.DepthTestOn(); @@ -101,8 +100,7 @@ namespace AzToolsFramework } } - void EditorBoxSelect::DisplayScene( - const AzFramework::ViewportInfo& viewportInfo, AzFramework::DebugDisplayRequests& debugDisplay) + void EditorBoxSelect::DisplayScene(const AzFramework::ViewportInfo& viewportInfo, AzFramework::DebugDisplayRequests& debugDisplay) { if (m_displayScene) { @@ -122,15 +120,14 @@ namespace AzToolsFramework m_mouseMove = mouseMove; } - void EditorBoxSelect::InstallLeftMouseUp( - const AZStd::function& leftMouseUp) + void EditorBoxSelect::InstallLeftMouseUp(const AZStd::function& leftMouseUp) { m_leftMouseUp = leftMouseUp; } void EditorBoxSelect::InstallDisplayScene( - const AZStd::function& displayScene) + const AZStd::function& + displayScene) { m_displayScene = displayScene; } diff --git a/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorBoxSelect.h b/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorBoxSelect.h index 8b36ec0a32..f1c59f9fd8 100644 --- a/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorBoxSelect.h +++ b/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorBoxSelect.h @@ -81,5 +81,6 @@ namespace AzToolsFramework ViewportInteraction::KeyboardModifiers m_previousModifiers; //!< Modifier keys active on the previous frame. AzFramework::ClickDetector m_clickDetector; //!< Utility type to detect if a mouse click or move has occurred. AzFramework::CursorState m_cursorState; //!< Utility type to track the current cursor position (and movement/delta). + AzFramework::ScreenPoint m_cursorPositionAtDownEvent; //!< The position of the cursor when first potentially starting a box select. }; } // namespace AzToolsFramework diff --git a/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorTransformComponentSelection.cpp b/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorTransformComponentSelection.cpp index 101d7094db..afcade944a 100644 --- a/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorTransformComponentSelection.cpp +++ b/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorTransformComponentSelection.cpp @@ -44,39 +44,46 @@ namespace AzToolsFramework AZ_CVAR( float, - cl_viewportGizmoAxisLineWidth, + ed_viewportGizmoAxisLineWidth, 4.0f, nullptr, AZ::ConsoleFunctorFlags::Null, "The width of the line for the viewport axis gizmo"); AZ_CVAR( float, - cl_viewportGizmoAxisLineLength, + ed_viewportGizmoAxisLineLength, 0.7f, nullptr, AZ::ConsoleFunctorFlags::Null, "The length of the line for the viewport axis gizmo"); AZ_CVAR( float, - cl_viewportGizmoAxisLabelOffset, + ed_viewportGizmoAxisLabelOffset, 1.15f, nullptr, AZ::ConsoleFunctorFlags::Null, "The offset of the label for the viewport axis gizmo"); AZ_CVAR( float, - cl_viewportGizmoAxisLabelSize, + ed_viewportGizmoAxisLabelSize, 1.0f, nullptr, AZ::ConsoleFunctorFlags::Null, "The size of each label for the viewport axis gizmo"); AZ_CVAR( AZ::Vector2, - cl_viewportGizmoAxisScreenPosition, + ed_viewportGizmoAxisScreenPosition, AZ::Vector2(0.045f, 0.9f), nullptr, AZ::ConsoleFunctorFlags::Null, "The screen position of the gizmo in normalized (0-1) ndc space"); + AZ_CVAR( + bool, + ed_viewportStickySelect, + true, + nullptr, + AZ::ConsoleFunctorFlags::Null, + "Sticky select implies a single click will not change selection with an entity already selected"); // strings related to new viewport interaction model (EditorTransformComponentSelection) static const char* const s_togglePivotTitleRightClick = "Toggle pivot"; @@ -991,14 +998,19 @@ namespace AzToolsFramework // ask the visible entity data cache if the entity is selectable in the viewport // (useful in the context of drawing when we only care about entities we can see) - static bool SelectableInVisibleViewportCache(const EditorVisibleEntityDataCache& entityDataCache, const AZ::EntityId entityId) + // note: return the index if it is selectable, nullopt otherwise + static AZStd::optional SelectableInVisibleViewportCache( + const EditorVisibleEntityDataCache& entityDataCache, const AZ::EntityId entityId) { if (auto entityIndex = entityDataCache.GetVisibleEntityIndexFromId(entityId)) { - return entityDataCache.IsVisibleEntitySelectableInViewport(*entityIndex); + if (entityDataCache.IsVisibleEntitySelectableInViewport(*entityIndex)) + { + return *entityIndex; + } } - return false; + return AZStd::nullopt; } static AZ::ComponentId GetTransformComponentId(const AZ::EntityId entityId) @@ -1709,17 +1721,17 @@ namespace AzToolsFramework m_pivotOverrideFrame.Reset(); } - bool EditorTransformComponentSelection::SelectDeselect(const AZ::EntityId entityIdUnderCursor) + bool EditorTransformComponentSelection::SelectDeselect(const AZ::EntityId entityId) { AZ_PROFILE_FUNCTION(AzToolsFramework); - if (entityIdUnderCursor.IsValid()) + if (entityId.IsValid()) { - if (IsEntitySelectedInternal(entityIdUnderCursor, m_selectedEntityIds)) + if (IsEntitySelectedInternal(entityId, m_selectedEntityIds)) { if (!UndoRedoOperationInProgress()) { - RemoveEntityFromSelection(entityIdUnderCursor); + RemoveEntityFromSelection(entityId); const auto nextEntityIds = EntityIdVectorFromContainer(m_selectedEntityIds); @@ -1742,7 +1754,7 @@ namespace AzToolsFramework { if (!UndoRedoOperationInProgress()) { - AddEntityToSelection(entityIdUnderCursor); + AddEntityToSelection(entityId); const auto nextEntityIds = EntityIdVectorFromContainer(m_selectedEntityIds); @@ -1783,25 +1795,21 @@ namespace AzToolsFramework // for entities selected with no bounds of their own (just TransformComponent) // check selection against the selection indicator aabb - for (AZ::EntityId entityId : m_selectedEntityIds) + for (const AZ::EntityId& entityId : m_selectedEntityIds) { - if (!SelectableInVisibleViewportCache(*m_entityDataCache, entityId)) + if (const auto entityIndex = SelectableInVisibleViewportCache(*m_entityDataCache, entityId); entityIndex.has_value()) { - continue; - } + const AZ::Transform& worldFromLocal = m_entityDataCache->GetVisibleEntityTransform(*entityIndex); + const AZ::Vector3 boxPosition = worldFromLocal.TransformPoint(CalculateCenterOffset(entityId, m_pivotMode)); + const AZ::Vector3 scaledSize = + AZ::Vector3(s_pivotSize) * CalculateScreenToWorldMultiplier(worldFromLocal.GetTranslation(), cameraState); - AZ::Transform worldFromLocal; - AZ::TransformBus::EventResult(worldFromLocal, entityId, &AZ::TransformBus::Events::GetWorldTM); - - const AZ::Vector3 boxPosition = worldFromLocal.TransformPoint(CalculateCenterOffset(entityId, m_pivotMode)); - - const AZ::Vector3 scaledSize = - AZ::Vector3(s_pivotSize) * CalculateScreenToWorldMultiplier(worldFromLocal.GetTranslation(), cameraState); - - if (AabbIntersectMouseRay( - mouseInteraction.m_mouseInteraction, AZ::Aabb::CreateFromMinMax(boxPosition - scaledSize, boxPosition + scaledSize))) - { - m_cachedEntityIdUnderCursor = entityId; + if (AabbIntersectMouseRay( + mouseInteraction.m_mouseInteraction, + AZ::Aabb::CreateFromMinMax(boxPosition - scaledSize, boxPosition + scaledSize))) + { + m_cachedEntityIdUnderCursor = entityId; + } } } @@ -3490,7 +3498,7 @@ namespace AzToolsFramework const auto cameraProjection = AzFramework::CameraProjection(gizmoCameraState); // screen space offset to move the 2d gizmo around - const AZ::Vector2 screenOffset = AZ::Vector2(cl_viewportGizmoAxisScreenPosition) - AZ::Vector2(0.5f, 0.5f); + const AZ::Vector2 screenOffset = AZ::Vector2(ed_viewportGizmoAxisScreenPosition) - AZ::Vector2(0.5f, 0.5f); // map from a position in world space (relative to the the gizmo camera near the origin) to a position in // screen space @@ -3502,7 +3510,7 @@ namespace AzToolsFramework }; // get all important axis positions in screen space - const float lineLength = cl_viewportGizmoAxisLineLength; + const float lineLength = ed_viewportGizmoAxisLineLength; const auto gizmoStart = calculateGizmoAxis(AZ::Vector3::CreateZero()); const auto gizmoEndAxisX = calculateGizmoAxis(-AZ::Vector3::CreateAxisX() * lineLength); const auto gizmoEndAxisY = calculateGizmoAxis(-AZ::Vector3::CreateAxisY() * lineLength); @@ -3513,7 +3521,7 @@ namespace AzToolsFramework const AZ::Vector2 gizmoAxisZ = gizmoEndAxisZ - gizmoStart; // draw the axes of the gizmo - debugDisplay.SetLineWidth(cl_viewportGizmoAxisLineWidth); + debugDisplay.SetLineWidth(ed_viewportGizmoAxisLineWidth); debugDisplay.SetColor(AZ::Colors::Red); debugDisplay.DrawLine2d(gizmoStart, gizmoEndAxisX, 1.0f); debugDisplay.SetColor(AZ::Colors::Lime); @@ -3522,14 +3530,14 @@ namespace AzToolsFramework debugDisplay.DrawLine2d(gizmoStart, gizmoEndAxisZ, 1.0f); debugDisplay.SetLineWidth(1.0f); - const float labelOffset = cl_viewportGizmoAxisLabelOffset; + const float labelOffset = ed_viewportGizmoAxisLabelOffset; const float screenScale = GetScreenDisplayScaling(viewportId); const auto labelXScreenPosition = (gizmoStart + (gizmoAxisX * labelOffset)) * editorCameraState.m_viewportSize * screenScale; const auto labelYScreenPosition = (gizmoStart + (gizmoAxisY * labelOffset)) * editorCameraState.m_viewportSize * screenScale; const auto labelZScreenPosition = (gizmoStart + (gizmoAxisZ * labelOffset)) * editorCameraState.m_viewportSize * screenScale; // draw the label of of each axis for the gizmo - const float labelSize = cl_viewportGizmoAxisLabelSize; + const float labelSize = ed_viewportGizmoAxisLabelSize; debugDisplay.SetColor(AZ::Colors::White); debugDisplay.Draw2dTextLabel(labelXScreenPosition.GetX(), labelXScreenPosition.GetY(), labelSize, "X", true); debugDisplay.Draw2dTextLabel(labelYScreenPosition.GetX(), labelYScreenPosition.GetY(), labelSize, "Y", true); diff --git a/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorTransformComponentSelection.h b/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorTransformComponentSelection.h index 42ec423b03..f528a11688 100644 --- a/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorTransformComponentSelection.h +++ b/Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorTransformComponentSelection.h @@ -9,6 +9,7 @@ #pragma once #include +#include #include #include #include @@ -32,6 +33,8 @@ namespace AzToolsFramework { + AZ_CVAR_EXTERNED(bool, ed_viewportStickySelect); + class EditorVisibleEntityDataCache; using EntityIdSet = AZStd::unordered_set; //!< Alias for unordered_set of EntityIds. @@ -170,14 +173,11 @@ namespace AzToolsFramework //! ViewportInteraction::ViewportSelectionRequests //! Intercept all viewport mouse events and respond to inputs. - bool HandleMouseInteraction( - const ViewportInteraction::MouseInteractionEvent& mouseInteraction) override; + bool HandleMouseInteraction(const ViewportInteraction::MouseInteractionEvent& mouseInteraction) override; void DisplayViewportSelection( - const AzFramework::ViewportInfo& viewportInfo, - AzFramework::DebugDisplayRequests& debugDisplay) override; + const AzFramework::ViewportInfo& viewportInfo, AzFramework::DebugDisplayRequests& debugDisplay) override; void DisplayViewportSelection2d( - const AzFramework::ViewportInfo& viewportInfo, - AzFramework::DebugDisplayRequests& debugDisplay) override; + const AzFramework::ViewportInfo& viewportInfo, AzFramework::DebugDisplayRequests& debugDisplay) override; //! Add an entity to the current selection void AddEntityToSelection(AZ::EntityId entityId); @@ -206,7 +206,7 @@ namespace AzToolsFramework bool IsEntitySelected(AZ::EntityId entityId) const; void SetSelectedEntities(const EntityIdList& entityIds); void DeselectEntities(); - bool SelectDeselect(AZ::EntityId entityIdUnderCursor); + bool SelectDeselect(AZ::EntityId entityId); void RefreshSelectedEntityIds(); void RefreshSelectedEntityIds(const EntityIdList& selectedEntityIds); @@ -253,11 +253,10 @@ namespace AzToolsFramework void SnapSelectedEntitiesToWorldGrid(float gridSize) override; // EditorManipulatorCommandUndoRedoRequestBus ... - void UndoRedoEntityManipulatorCommand( - AZ::u8 pivotOverride, const AZ::Transform& transform, AZ::EntityId entityId) override; + void UndoRedoEntityManipulatorCommand(AZ::u8 pivotOverride, const AZ::Transform& transform, AZ::EntityId entityId) override; // EditorContextMenuBus... - void PopulateEditorGlobalContextMenu(QMenu* menu, const AZ::Vector2 & point, int flags) override; + void PopulateEditorGlobalContextMenu(QMenu* menu, const AZ::Vector2& point, int flags) override; int GetMenuPosition() const override; AZStd::string GetMenuIdentifier() const override; @@ -266,8 +265,7 @@ namespace AzToolsFramework // ToolsApplicationNotificationBus ... void BeforeEntitySelectionChanged() override; - void AfterEntitySelectionChanged( - const EntityIdList& newlySelectedEntities, const EntityIdList& newlyDeselectedEntities) override; + void AfterEntitySelectionChanged(const EntityIdList& newlySelectedEntities, const EntityIdList& newlyDeselectedEntities) override; // TransformNotificationBus ... void OnTransformChanged(const AZ::Transform& localTM, const AZ::Transform& worldTM) override; @@ -318,7 +316,8 @@ namespace AzToolsFramework EntityIdManipulators m_entityIdManipulators; //!< Mapping from a Manipulator to potentially many EntityIds. EditorBoxSelect m_boxSelect; //!< Type responsible for handling box select. - AZStd::unique_ptr m_manipulatorMoveCommand; //!< Track adjustments to manipulator translation and orientation (during mouse press/move). + //! Track adjustments to manipulator translation and orientation (during mouse press/move). + AZStd::unique_ptr m_manipulatorMoveCommand; AZStd::vector> m_actions; //!< What actions are tied to this handler. ViewportInteraction::KeyboardModifiers m_previousModifiers; //!< What modifiers were held last frame. EditorContextMenu m_contextMenu; //!< Viewport right click context menu. @@ -328,8 +327,10 @@ namespace AzToolsFramework ReferenceFrame m_referenceFrame = ReferenceFrame::Parent; //!< What reference frame is the Manipulator currently operating in. Frame m_axisPreview; //!< Axes of entity at the time of mouse down to indicate delta of translation. bool m_triedToRefresh = false; //!< Did a refresh event occur to recalculate the current Manipulator transform. - bool m_didSetSelectedEntities = false; //!< Was EditorTransformComponentSelection responsible for the most recent entity selection change. - bool m_selectedEntityIdsAndManipulatorsDirty = false; //!< Do the active manipulators need to recalculated after a modification (lock/visibility etc). + //! Was EditorTransformComponentSelection responsible for the most recent entity selection change. + bool m_didSetSelectedEntities = false; + //! Do the active manipulators need to recalculated after a modification (lock/visibility etc). + bool m_selectedEntityIdsAndManipulatorsDirty = false; bool m_transformChangedInternally = false; //!< Was an OnTransformChanged event triggered internally or not. ViewportUi::ClusterId m_transformModeClusterId; //!< Id of the Viewport UI cluster for changing transform mode. ViewportUi::ButtonId m_translateButtonId; //!< Id of the Viewport UI button for translate mode. @@ -363,15 +364,13 @@ namespace AzToolsFramework //! Calculate the orientation for a group of entities based on the incoming reference frame. template - PivotOrientationResult CalculatePivotOrientationForEntityIds( - const EntityIdMap& entityIdMap, const ReferenceFrame referenceFrame); + PivotOrientationResult CalculatePivotOrientationForEntityIds(const EntityIdMap& entityIdMap, const ReferenceFrame referenceFrame); //! Calculate the orientation for a group of entities based on the incoming //! reference frame with possible pivot override. template PivotOrientationResult CalculateSelectionPivotOrientation( - const EntityIdMap& entityIdMap, const OptionalFrame& pivotOverrideFrame, - const ReferenceFrame referenceFrame); + const EntityIdMap& entityIdMap, const OptionalFrame& pivotOverrideFrame, const ReferenceFrame referenceFrame); void SetEntityWorldTranslation(AZ::EntityId entityId, const AZ::Vector3& worldTranslation, bool& internal); void SetEntityLocalTranslation(AZ::EntityId entityId, const AZ::Vector3& localTranslation, bool& internal); diff --git a/Code/Framework/AzToolsFramework/Platform/Linux/AzToolsFramework/Archive/ArchiveComponent_Linux.cpp b/Code/Framework/AzToolsFramework/Platform/Linux/AzToolsFramework/Archive/ArchiveComponent_Linux.cpp index 4a834bdedb..cc8b9492e8 100644 --- a/Code/Framework/AzToolsFramework/Platform/Linux/AzToolsFramework/Archive/ArchiveComponent_Linux.cpp +++ b/Code/Framework/AzToolsFramework/Platform/Linux/AzToolsFramework/Archive/ArchiveComponent_Linux.cpp @@ -15,7 +15,7 @@ namespace AzToolsFramework { namespace Platform { - static const char ErrorChannel[] = "ArchiveComponent_Linux"; + [[maybe_unused]] static const char ErrorChannel[] = "ArchiveComponent_Linux"; static const char ZipExePath[] = R"(/usr/bin/zip)"; static const char UnzipExePath[] = R"(/usr/bin/unzip)"; diff --git a/Code/Framework/AzToolsFramework/Tests/EditorTransformComponentSelectionTests.cpp b/Code/Framework/AzToolsFramework/Tests/EditorTransformComponentSelectionTests.cpp index c1c158d0f9..dc6e38ecd5 100644 --- a/Code/Framework/AzToolsFramework/Tests/EditorTransformComponentSelectionTests.cpp +++ b/Code/Framework/AzToolsFramework/Tests/EditorTransformComponentSelectionTests.cpp @@ -6,12 +6,14 @@ * */ +#include #include #include #include #include #include #include +#include #include #include #include @@ -20,10 +22,12 @@ #include #include #include +#include #include #include #include #include +#include #include #include #include @@ -32,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -46,6 +51,14 @@ namespace AZ namespace UnitTest { + AzToolsFramework::EntityIdList SelectedEntities() + { + AzToolsFramework::EntityIdList selectedEntitiesBefore; + AzToolsFramework::ToolsApplicationRequestBus::BroadcastResult( + selectedEntitiesBefore, &AzToolsFramework::ToolsApplicationRequestBus::Events::GetSelectedEntities); + return selectedEntitiesBefore; + } + class EditorEntityVisibilityCacheFixture : public ToolsApplicationFixture { public: @@ -110,6 +123,80 @@ namespace UnitTest EXPECT_FALSE(m_cache.IsVisibleEntityVisible(m_cache.GetVisibleEntityIndexFromId(m_entityIds[2]).value())); } + //! Basic component that implements BoundsRequestBus and EditorComponentSelectionRequestsBus to be compatible + //! with the Editor visibility system. + //! Note: Used for simulating selection (picking) in the viewport. + class BoundsTestComponent + : public AzToolsFramework::Components::EditorComponentBase + , public AzFramework::BoundsRequestBus::Handler + , public AzToolsFramework::EditorComponentSelectionRequestsBus::Handler + { + public: + AZ_EDITOR_COMPONENT( + BoundsTestComponent, "{E6312E9D-8489-4677-9980-C93C328BC92C}", AzToolsFramework::Components::EditorComponentBase); + + static void Reflect(AZ::ReflectContext* context); + + // AZ::Component overrides ... + void Activate() override; + void Deactivate() override; + + // EditorComponentSelectionRequestsBus overrides ... + AZ::Aabb GetEditorSelectionBoundsViewport(const AzFramework::ViewportInfo& viewportInfo) override; + bool EditorSelectionIntersectRayViewport( + const AzFramework::ViewportInfo& viewportInfo, const AZ::Vector3& src, const AZ::Vector3& dir, float& distance) override; + bool SupportsEditorRayIntersect() override; + + // BoundsRequestBus overrides ... + AZ::Aabb GetWorldBounds() override; + AZ::Aabb GetLocalBounds() override; + }; + + AZ::Aabb BoundsTestComponent::GetEditorSelectionBoundsViewport([[maybe_unused]] const AzFramework::ViewportInfo& viewportInfo) + { + return GetWorldBounds(); + } + + bool BoundsTestComponent::EditorSelectionIntersectRayViewport( + [[maybe_unused]] const AzFramework::ViewportInfo& viewportInfo, const AZ::Vector3& src, const AZ::Vector3& dir, float& distance) + { + return AzToolsFramework::AabbIntersectRay(src, dir, GetWorldBounds(), distance); + } + + bool BoundsTestComponent::SupportsEditorRayIntersect() + { + return true; + } + + void BoundsTestComponent::Reflect([[maybe_unused]] AZ::ReflectContext* context) + { + // noop + } + + void BoundsTestComponent::Activate() + { + AzFramework::BoundsRequestBus::Handler::BusConnect(GetEntityId()); + AzToolsFramework::EditorComponentSelectionRequestsBus::Handler::BusConnect(GetEntityId()); + } + + void BoundsTestComponent::Deactivate() + { + AzToolsFramework::EditorComponentSelectionRequestsBus::Handler::BusDisconnect(); + AzFramework::BoundsRequestBus::Handler::BusDisconnect(); + } + + AZ::Aabb BoundsTestComponent::GetWorldBounds() + { + AZ::Transform worldFromLocal = AZ::Transform::CreateIdentity(); + AZ::TransformBus::EventResult(worldFromLocal, GetEntityId(), &AZ::TransformBus::Events::GetWorldTM); + return GetLocalBounds().GetTransformedAabb(worldFromLocal); + } + + AZ::Aabb BoundsTestComponent::GetLocalBounds() + { + return AZ::Aabb::CreateFromMinMax(AZ::Vector3(-0.5f), AZ::Vector3(0.5f)); + } + // Fixture to support testing EditorTransformComponentSelection functionality on an Entity selection. class EditorTransformComponentSelectionFixture : public ToolsApplicationFixture { @@ -120,27 +207,52 @@ namespace UnitTest m_entityIds.push_back(m_entityId1); } - void ArrangeIndividualRotatedEntitySelection(const AZ::Quaternion& orientation); - AZStd::optional GetManipulatorTransform() const; - void RefreshManipulators(AzToolsFramework::EditorTransformComponentSelectionRequestBus::Events::RefreshType refreshType); - void SetTransformMode(AzToolsFramework::EditorTransformComponentSelectionRequestBus::Events::Mode transformMode); - void OverrideManipulatorOrientation(const AZ::Quaternion& orientation); - void OverrideManipulatorTranslation(const AZ::Vector3& translation); - public: AZ::EntityId m_entityId1; AzToolsFramework::EntityIdList m_entityIds; }; - void EditorTransformComponentSelectionFixture::ArrangeIndividualRotatedEntitySelection(const AZ::Quaternion& orientation) + class EditorTransformComponentSelectionViewportPickingFixture : public ToolsApplicationFixture { - for (auto entityId : m_entityIds) + public: + void SetUpEditorFixtureImpl() override + { + auto* app = GetApplication(); + // register a simple component implementing BoundsRequestBus and EditorComponentSelectionRequestsBus + app->RegisterComponentDescriptor(BoundsTestComponent::CreateDescriptor()); + + auto createEntityWithBoundsFn = [](const char* entityName) + { + AZ::Entity* entity = nullptr; + AZ::EntityId entityId = CreateDefaultEditorEntity(entityName, &entity); + + entity->Deactivate(); + entity->CreateComponent(); + entity->Activate(); + + return entityId; + }; + + m_entityId1 = createEntityWithBoundsFn("Entity1"); + m_entityId2 = createEntityWithBoundsFn("Entity2"); + m_entityId3 = createEntityWithBoundsFn("Entity3"); + } + + public: + AZ::EntityId m_entityId1; + AZ::EntityId m_entityId2; + AZ::EntityId m_entityId3; + }; + + void ArrangeIndividualRotatedEntitySelection(const AzToolsFramework::EntityIdList& entityIds, const AZ::Quaternion& orientation) + { + for (auto entityId : entityIds) { AZ::TransformBus::Event(entityId, &AZ::TransformBus::Events::SetLocalRotationQuaternion, orientation); } } - AZStd::optional EditorTransformComponentSelectionFixture::GetManipulatorTransform() const + AZStd::optional GetManipulatorTransform() { using AzToolsFramework::EditorTransformComponentSelectionRequestBus; @@ -151,8 +263,7 @@ namespace UnitTest return manipulatorTransform; } - void EditorTransformComponentSelectionFixture::RefreshManipulators( - AzToolsFramework::EditorTransformComponentSelectionRequestBus::Events::RefreshType refreshType) + void RefreshManipulators(const AzToolsFramework::EditorTransformComponentSelectionRequestBus::Events::RefreshType refreshType) { using AzToolsFramework::EditorTransformComponentSelectionRequestBus; @@ -160,8 +271,7 @@ namespace UnitTest AzToolsFramework::GetEntityContextId(), &EditorTransformComponentSelectionRequestBus::Events::RefreshManipulators, refreshType); } - void EditorTransformComponentSelectionFixture::SetTransformMode( - AzToolsFramework::EditorTransformComponentSelectionRequestBus::Events::Mode transformMode) + void SetTransformMode(const AzToolsFramework::EditorTransformComponentSelectionRequestBus::Events::Mode transformMode) { using AzToolsFramework::EditorTransformComponentSelectionRequestBus; @@ -169,7 +279,7 @@ namespace UnitTest AzToolsFramework::GetEntityContextId(), &EditorTransformComponentSelectionRequestBus::Events::SetTransformMode, transformMode); } - void EditorTransformComponentSelectionFixture::OverrideManipulatorOrientation(const AZ::Quaternion& orientation) + void OverrideManipulatorOrientation(const AZ::Quaternion& orientation) { using AzToolsFramework::EditorTransformComponentSelectionRequestBus; @@ -178,7 +288,7 @@ namespace UnitTest orientation); } - void EditorTransformComponentSelectionFixture::OverrideManipulatorTranslation(const AZ::Vector3& translation) + void OverrideManipulatorTranslation(const AZ::Vector3& translation) { using AzToolsFramework::EditorTransformComponentSelectionRequestBus; @@ -190,7 +300,7 @@ namespace UnitTest /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // EditorTransformComponentSelection Tests - TEST_F(EditorTransformComponentSelectionFixture, Focus_is_not_changed_while_switching_viewport_interaction_request_instance) + TEST_F(EditorTransformComponentSelectionFixture, FocusIsNotChangedWhileSwitchingViewportInteractionRequestInstance) { // setup a dummy widget and make it the active window to ensure focus in/out events are fired auto dummyWidget = AZStd::make_unique(); @@ -239,7 +349,7 @@ namespace UnitTest // Given AzToolsFramework::SelectEntity(m_entityId1); - ArrangeIndividualRotatedEntitySelection(AZ::Quaternion::CreateRotationX(AZ::DegToRad(90.0f))); + ArrangeIndividualRotatedEntitySelection(m_entityIds, AZ::Quaternion::CreateRotationX(AZ::DegToRad(90.0f))); RefreshManipulators(EditorTransformComponentSelectionRequestBus::Events::RefreshType::All); SetTransformMode(EditorTransformComponentSelectionRequestBus::Events::Mode::Rotation); @@ -286,7 +396,7 @@ namespace UnitTest AzToolsFramework::SelectEntity(m_entityId1); const AZ::Quaternion initialEntityOrientation = AZ::Quaternion::CreateRotationX(AZ::DegToRad(90.0f)); - ArrangeIndividualRotatedEntitySelection(initialEntityOrientation); + ArrangeIndividualRotatedEntitySelection(m_entityIds, initialEntityOrientation); // assign new orientation to manipulator which does not match entity orientation OverrideManipulatorOrientation(AZ::Quaternion::CreateRotationZ(AZ::DegToRad(90.0f))); @@ -478,6 +588,227 @@ namespace UnitTest /////////////////////////////////////////////////////////////////////////////////////////////////////////////// } + // fixture for use with the indirect manipulator test framework + using EditorTransformComponentSelectionViewportPickingManipulatorTestFixture = + IndirectCallManipulatorViewportInteractionFixtureMixin; + + TEST_F(EditorTransformComponentSelectionViewportPickingManipulatorTestFixture, SingleClickWithNoSelectionWillSelectEntity) + { + AzToolsFramework::ed_viewportStickySelect = true; + + // the initial starting position of the entity + const auto initialTransformWorld = AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 15.0f, 10.0f)); + AZ::TransformBus::Event(m_entityId1, &AZ::TransformBus::Events::SetWorldTM, initialTransformWorld); + + // initial camera position (looking down the negative x-axis) + AzFramework::SetCameraTransform( + m_cameraState, + AZ::Transform::CreateFromQuaternionAndTranslation( + AZ::Quaternion::CreateFromEulerAnglesDegrees(AZ::Vector3(0.0f, 0.0f, 90.0f)), AZ::Vector3(10.0f, 15.0f, 10.0f))); + + using ::testing::Eq; + auto selectedEntitiesBefore = SelectedEntities(); + EXPECT_TRUE(selectedEntitiesBefore.empty()); + + // calculate the position in screen space of the initial entity position + const auto initialPositionScreen = AzFramework::WorldToScreen(initialTransformWorld.GetTranslation(), m_cameraState); + + // click the entity in the viewport + m_actionDispatcher->CameraState(m_cameraState)->MousePosition(initialPositionScreen)->MouseLButtonDown()->MouseLButtonUp(); + + // entity is selected + auto selectedEntitiesAfter = SelectedEntities(); + EXPECT_THAT(selectedEntitiesAfter.size(), Eq(1)); + EXPECT_THAT(selectedEntitiesAfter.front(), Eq(m_entityId1)); + } + + TEST_F(EditorTransformComponentSelectionViewportPickingManipulatorTestFixture, SingleClickOffEntityWithSelectionWillNotDeselectEntity) + { + AzToolsFramework::ed_viewportStickySelect = true; + + // the initial starting position of the entity + AZ::TransformBus::Event( + m_entityId1, &AZ::TransformBus::Events::SetWorldTM, AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 15.0f, 10.0f))); + + // position in space above the entity + const auto clickOffPositionWorld = AZ::Vector3(5.0f, 15.0f, 12.0f); + + // initial camera position (looking down the negative x-axis) + AzFramework::SetCameraTransform( + m_cameraState, + AZ::Transform::CreateFromQuaternionAndTranslation( + AZ::Quaternion::CreateFromEulerAnglesDegrees(AZ::Vector3(0.0f, 0.0f, 90.0f)), AZ::Vector3(10.0f, 15.0f, 10.0f))); + + AzToolsFramework::SelectEntity(m_entityId1); + + // calculate the position in screen space of the initial position of the entity + const auto clickOffPositionScreen = AzFramework::WorldToScreen(clickOffPositionWorld, m_cameraState); + + // click the empty space in the viewport + m_actionDispatcher->CameraState(m_cameraState)->MousePosition(clickOffPositionScreen)->MouseLButtonDown()->MouseLButtonUp(); + + // entity was not deselected + using ::testing::Eq; + auto selectedEntitiesAfter = SelectedEntities(); + EXPECT_THAT(selectedEntitiesAfter.size(), Eq(1)); + EXPECT_THAT(selectedEntitiesAfter.front(), Eq(m_entityId1)); + } + + TEST_F( + EditorTransformComponentSelectionViewportPickingManipulatorTestFixture, + SingleClickOnNewEntityWithSelectionWillNotChangeSelectedEntity) + { + AzToolsFramework::ed_viewportStickySelect = true; + + // the initial starting position of the entity + AZ::TransformBus::Event( + m_entityId1, &AZ::TransformBus::Events::SetWorldTM, AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 15.0f, 10.0f))); + + const auto initialTransformWorldSecondEntity = AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 10.0f, 10.0f)); + AZ::TransformBus::Event(m_entityId2, &AZ::TransformBus::Events::SetWorldTM, initialTransformWorldSecondEntity); + + // initial camera position (looking down the negative x-axis) + AzFramework::SetCameraTransform( + m_cameraState, + AZ::Transform::CreateFromQuaternionAndTranslation( + AZ::Quaternion::CreateFromEulerAnglesDegrees(AZ::Vector3(0.0f, 0.0f, 90.0f)), AZ::Vector3(10.0f, 15.0f, 10.0f))); + + AzToolsFramework::SelectEntity(m_entityId1); + + // calculate the position in screen space of the second entity + const auto initialPositionScreenSecondEntity = + AzFramework::WorldToScreen(initialTransformWorldSecondEntity.GetTranslation(), m_cameraState); + + // click the entity in the viewport + m_actionDispatcher->CameraState(m_cameraState) + ->MousePosition(initialPositionScreenSecondEntity) + ->MouseLButtonDown() + ->MouseLButtonUp(); + + // entity selection was not changed + using ::testing::Eq; + auto selectedEntitiesAfter = SelectedEntities(); + EXPECT_THAT(selectedEntitiesAfter.size(), Eq(1)); + EXPECT_THAT(selectedEntitiesAfter.front(), Eq(m_entityId1)); + } + + TEST_F( + EditorTransformComponentSelectionViewportPickingManipulatorTestFixture, + CtrlSingleClickOnNewEntityWithSelectionWillAppendSelectedEntityToSelection) + { + AzToolsFramework::ed_viewportStickySelect = true; + + // the initial starting position of the entity + AZ::TransformBus::Event( + m_entityId1, &AZ::TransformBus::Events::SetWorldTM, AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 15.0f, 10.0f))); + + const auto initialTransformWorldSecondEntity = AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 10.0f, 10.0f)); + AZ::TransformBus::Event(m_entityId2, &AZ::TransformBus::Events::SetWorldTM, initialTransformWorldSecondEntity); + + // initial camera position (looking down the negative x-axis) + AzFramework::SetCameraTransform( + m_cameraState, + AZ::Transform::CreateFromQuaternionAndTranslation( + AZ::Quaternion::CreateFromEulerAnglesDegrees(AZ::Vector3(0.0f, 0.0f, 90.0f)), AZ::Vector3(10.0f, 15.0f, 10.0f))); + + AzToolsFramework::SelectEntity(m_entityId1); + + // calculate the position in screen space of the second entity + const auto initialPositionScreenSecondEntity = + AzFramework::WorldToScreen(initialTransformWorldSecondEntity.GetTranslation(), m_cameraState); + + // click the entity in the viewport + m_actionDispatcher->CameraState(m_cameraState) + ->MousePosition(initialPositionScreenSecondEntity) + ->KeyboardModifierDown(AzToolsFramework::ViewportInteraction::KeyboardModifier::Control) + ->MouseLButtonDown() + ->MouseLButtonUp(); + + // entity selection was changed (one entity selected to two) + using ::testing::UnorderedElementsAre; + auto selectedEntitiesAfter = SelectedEntities(); + EXPECT_THAT(selectedEntitiesAfter, UnorderedElementsAre(m_entityId1, m_entityId2)); + } + + TEST_F( + EditorTransformComponentSelectionViewportPickingManipulatorTestFixture, + CtrlSingleClickOnEntityInSelectionWillRemoveEntityFromSelection) + { + AzToolsFramework::ed_viewportStickySelect = true; + + // the initial starting position of the entity + AZ::TransformBus::Event( + m_entityId1, &AZ::TransformBus::Events::SetWorldTM, AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 15.0f, 10.0f))); + + const auto initialTransformWorldSecondEntity = AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 10.0f, 10.0f)); + AZ::TransformBus::Event(m_entityId2, &AZ::TransformBus::Events::SetWorldTM, initialTransformWorldSecondEntity); + + // initial camera position (looking down the negative x-axis) + AzFramework::SetCameraTransform( + m_cameraState, + AZ::Transform::CreateFromQuaternionAndTranslation( + AZ::Quaternion::CreateFromEulerAnglesDegrees(AZ::Vector3(0.0f, 0.0f, 90.0f)), AZ::Vector3(10.0f, 15.0f, 10.0f))); + + AzToolsFramework::SelectEntities({ m_entityId1, m_entityId2 }); + + // calculate the position in screen space of the second entity + const auto initialPositionScreenSecondEntity = + AzFramework::WorldToScreen(initialTransformWorldSecondEntity.GetTranslation(), m_cameraState); + + // click the entity in the viewport + m_actionDispatcher->CameraState(m_cameraState) + ->MousePosition(initialPositionScreenSecondEntity) + ->KeyboardModifierDown(AzToolsFramework::ViewportInteraction::KeyboardModifier::Control) + ->MouseLButtonDown() + ->MouseLButtonUp(); + + // entity selection was changed (entity2 was deselected) + using ::testing::UnorderedElementsAre; + auto selectedEntitiesAfter = SelectedEntities(); + EXPECT_THAT(selectedEntitiesAfter, UnorderedElementsAre(m_entityId1)); + } + + TEST_F(EditorTransformComponentSelectionViewportPickingManipulatorTestFixture, DISABLED_BoxSelectWithNoInitialSelectionAddsEntitiesToSelection) + { + AzToolsFramework::ed_viewportStickySelect = true; + + // the initial starting position of the entities + AZ::TransformBus::Event( + m_entityId1, &AZ::TransformBus::Events::SetWorldTM, AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 15.0f, 10.0f))); + AZ::TransformBus::Event( + m_entityId2, &AZ::TransformBus::Events::SetWorldTM, AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 14.0f, 10.0f))); + AZ::TransformBus::Event( + m_entityId3, &AZ::TransformBus::Events::SetWorldTM, AZ::Transform::CreateTranslation(AZ::Vector3(5.0f, 16.0f, 10.0f))); + + // initial camera position (looking down the negative x-axis) + AzFramework::SetCameraTransform( + m_cameraState, + AZ::Transform::CreateFromQuaternionAndTranslation( + AZ::Quaternion::CreateFromEulerAnglesDegrees(AZ::Vector3(0.0f, 0.0f, 90.0f)), AZ::Vector3(10.0f, 15.0f, 10.0f))); + + using ::testing::Eq; + auto selectedEntitiesBefore = SelectedEntities(); + EXPECT_THAT(selectedEntitiesBefore.size(), Eq(0)); + + // calculate the position in screen space of where to begin and end the box select action + const auto beginningPositionWorldBoxSelectStart = AzFramework::WorldToScreen(AZ::Vector3(5.0f, 13.5f, 10.5f), m_cameraState); + const auto middlePositionWorldBoxSelectStart = AzFramework::WorldToScreen(AZ::Vector3(5.0f, 15.0f, 10.0f), m_cameraState); + const auto endingPositionWorldBoxSelectStart = AzFramework::WorldToScreen(AZ::Vector3(5.0f, 16.5f, 9.5f), m_cameraState); + + // perform a box select in the viewport + m_actionDispatcher->CameraState(m_cameraState) + ->MousePosition(beginningPositionWorldBoxSelectStart) + ->MouseLButtonDown() + ->MousePosition(middlePositionWorldBoxSelectStart) + ->MousePosition(endingPositionWorldBoxSelectStart) + ->MouseLButtonUp(); + + // entities are selected + using ::testing::UnorderedElementsAre; + auto selectedEntitiesAfter = SelectedEntities(); + EXPECT_THAT(selectedEntitiesAfter, UnorderedElementsAre(m_entityId1, m_entityId2, m_entityId3)); + } + using EditorTransformComponentSelectionManipulatorTestFixture = IndirectCallManipulatorViewportInteractionFixtureMixin; diff --git a/Code/Tools/Standalone/Source/LUA/LUAEditorMainWindow.cpp b/Code/Tools/Standalone/Source/LUA/LUAEditorMainWindow.cpp index ffbc5a445c..c88ea59bdb 100644 --- a/Code/Tools/Standalone/Source/LUA/LUAEditorMainWindow.cpp +++ b/Code/Tools/Standalone/Source/LUA/LUAEditorMainWindow.cpp @@ -60,8 +60,8 @@ void initSharedResources() namespace { - const char* LUAEditorDebugName = "LUA Debug"; - const char* LUAEditorInfoName = "LUA Editor"; + [[maybe_unused]] const char* LUAEditorDebugName = "LUA Debug"; + [[maybe_unused]] const char* LUAEditorInfoName = "LUA Editor"; } diff --git a/Gems/Atom/Asset/ImageProcessingAtom/Code/Source/Processing/ImageConvert.cpp b/Gems/Atom/Asset/ImageProcessingAtom/Code/Source/Processing/ImageConvert.cpp index 1618f376b4..9b41645280 100644 --- a/Gems/Atom/Asset/ImageProcessingAtom/Code/Source/Processing/ImageConvert.cpp +++ b/Gems/Atom/Asset/ImageProcessingAtom/Code/Source/Processing/ImageConvert.cpp @@ -63,7 +63,7 @@ namespace ImageProcessingAtom StepAll }; - const char ProcessStepNames[StepAll][64] = + [[maybe_unused]] const char ProcessStepNames[StepAll][64] = { "ValidateInput", "GenerateColorChart", diff --git a/Gems/Atom/Asset/Shader/Code/Source/Editor/AtomShaderConfig.cpp b/Gems/Atom/Asset/Shader/Code/Source/Editor/AtomShaderConfig.cpp index d2bcf4b985..e20d9ecf6c 100644 --- a/Gems/Atom/Asset/Shader/Code/Source/Editor/AtomShaderConfig.cpp +++ b/Gems/Atom/Asset/Shader/Code/Source/Editor/AtomShaderConfig.cpp @@ -21,7 +21,7 @@ namespace AZ { namespace AtomShaderConfig { - static constexpr char AtomShaderConfigName[] = "AtomShaderConfig"; + [[maybe_unused]] static constexpr char AtomShaderConfigName[] = "AtomShaderConfig"; bool MutateToFirstAbsoluteFolderThatExists(AZStd::string& relativeFolder, AZStd::vector& watchFolders) { diff --git a/Gems/Atom/Asset/Shader/Code/Source/Editor/CommonFiles/CommonTypes.cpp b/Gems/Atom/Asset/Shader/Code/Source/Editor/CommonFiles/CommonTypes.cpp index 35c1e48d37..d960b25c10 100644 --- a/Gems/Atom/Asset/Shader/Code/Source/Editor/CommonFiles/CommonTypes.cpp +++ b/Gems/Atom/Asset/Shader/Code/Source/Editor/CommonFiles/CommonTypes.cpp @@ -16,7 +16,7 @@ namespace AZ { namespace ShaderBuilder { - static const char* s_azslShaderCompilerName = "AZSL Compiler"; + [[maybe_unused]] static const char* s_azslShaderCompilerName = "AZSL Compiler"; AZ::RHI::Format StringToFormat(const char* format) { diff --git a/Gems/Atom/Asset/Shader/Code/Source/Editor/PrecompiledShaderBuilder.cpp b/Gems/Atom/Asset/Shader/Code/Source/Editor/PrecompiledShaderBuilder.cpp index 21eda31ca2..2abee4d297 100644 --- a/Gems/Atom/Asset/Shader/Code/Source/Editor/PrecompiledShaderBuilder.cpp +++ b/Gems/Atom/Asset/Shader/Code/Source/Editor/PrecompiledShaderBuilder.cpp @@ -26,7 +26,7 @@ namespace AZ { namespace { - static const char* PrecompiledShaderBuilderName = "PrecompiledShaderBuilder"; + [[maybe_unused]] static const char* PrecompiledShaderBuilderName = "PrecompiledShaderBuilder"; static const char* PrecompiledShaderBuilderJobKey = "PrecompiledShader Asset Builder"; static const char* ShaderAssetExtension = "azshader"; } diff --git a/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderBuilderUtility.cpp b/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderBuilderUtility.cpp index 928655111a..9c616569bd 100644 --- a/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderBuilderUtility.cpp +++ b/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderBuilderUtility.cpp @@ -46,7 +46,7 @@ namespace AZ { namespace ShaderBuilderUtility { - static constexpr char ShaderBuilderUtilityName[] = "ShaderBuilderUtility"; + [[maybe_unused]] static constexpr char ShaderBuilderUtilityName[] = "ShaderBuilderUtility"; Outcome LoadShaderDataJson(const AZStd::string& fullPathToJsonFile) { diff --git a/Gems/Atom/RHI/Code/Source/RHI.Edit/Utils.cpp b/Gems/Atom/RHI/Code/Source/RHI.Edit/Utils.cpp index d5b626917b..b4c68b3f75 100644 --- a/Gems/Atom/RHI/Code/Source/RHI.Edit/Utils.cpp +++ b/Gems/Atom/RHI/Code/Source/RHI.Edit/Utils.cpp @@ -30,7 +30,7 @@ namespace AZ namespace RHI { static AZStd::mutex s_profilingMutex; - static constexpr char ShaderPlatformInterfaceName[] = "ShaderPlatformInterface"; + [[maybe_unused]] static constexpr char ShaderPlatformInterfaceName[] = "ShaderPlatformInterface"; void ShaderCompilerProfiling::Entry::Reflect(ReflectContext* context) { diff --git a/Gems/Atom/RHI/Vulkan/Code/Source/RHI.Builders/ShaderPlatformInterface.cpp b/Gems/Atom/RHI/Vulkan/Code/Source/RHI.Builders/ShaderPlatformInterface.cpp index db6a454cea..8b99b7b510 100644 --- a/Gems/Atom/RHI/Vulkan/Code/Source/RHI.Builders/ShaderPlatformInterface.cpp +++ b/Gems/Atom/RHI/Vulkan/Code/Source/RHI.Builders/ShaderPlatformInterface.cpp @@ -23,7 +23,7 @@ namespace AZ { namespace Vulkan { - static const char* VulkanShaderPlatformName = "VulkanShaderPlatform"; + [[maybe_unused]] static const char* VulkanShaderPlatformName = "VulkanShaderPlatform"; static const char* WindowsPlatformShaderHeader = "Builders/ShaderHeaders/Platform/Windows/Vulkan/PlatformHeader.hlsli"; static const char* AndroidPlatformShaderHeader = "Builders/ShaderHeaders/Platform/Android/Vulkan/PlatformHeader.hlsli"; static const char* WindowsAzslShaderHeader = "Builders/ShaderHeaders/Platform/Windows/Vulkan/AzslcHeader.azsli"; diff --git a/Gems/Atom/RPI/Code/Source/RPI.Builders/Common/AnyAssetBuilder.cpp b/Gems/Atom/RPI/Code/Source/RPI.Builders/Common/AnyAssetBuilder.cpp index c9c477048f..4d060b97b1 100644 --- a/Gems/Atom/RPI/Code/Source/RPI.Builders/Common/AnyAssetBuilder.cpp +++ b/Gems/Atom/RPI/Code/Source/RPI.Builders/Common/AnyAssetBuilder.cpp @@ -30,7 +30,7 @@ namespace AZ { namespace { - const char* AnyAssetBuilderName = "AnyAssetBuilder"; + [[maybe_unused]] const char* AnyAssetBuilderName = "AnyAssetBuilder"; const char* AnyAssetBuilderJobKey = "Any Asset Builder"; const char* AnyAssetBuilderDefaultExtension = "azasset"; const char* AnyAssetSourceExtensions[] = diff --git a/Gems/Atom/RPI/Code/Source/RPI.Builders/Material/MaterialBuilder.cpp b/Gems/Atom/RPI/Code/Source/RPI.Builders/Material/MaterialBuilder.cpp index d2ccad1997..62e078c628 100644 --- a/Gems/Atom/RPI/Code/Source/RPI.Builders/Material/MaterialBuilder.cpp +++ b/Gems/Atom/RPI/Code/Source/RPI.Builders/Material/MaterialBuilder.cpp @@ -37,7 +37,7 @@ namespace AZ { namespace { - static constexpr char const MaterialBuilderName[] = "MaterialBuilder"; + [[maybe_unused]] static constexpr char const MaterialBuilderName[] = "MaterialBuilder"; } const char* MaterialBuilder::JobKey = "Atom Material Builder"; diff --git a/Gems/Atom/RPI/Code/Source/RPI.Builders/Model/MaterialAssetBuilderComponent.cpp b/Gems/Atom/RPI/Code/Source/RPI.Builders/Model/MaterialAssetBuilderComponent.cpp index 0ac5b61662..cf7e53c596 100644 --- a/Gems/Atom/RPI/Code/Source/RPI.Builders/Model/MaterialAssetBuilderComponent.cpp +++ b/Gems/Atom/RPI/Code/Source/RPI.Builders/Model/MaterialAssetBuilderComponent.cpp @@ -37,7 +37,7 @@ namespace AZ { namespace RPI { - static const char* MaterialExporterName = "Scene Material Builder"; + [[maybe_unused]] static const char* MaterialExporterName = "Scene Material Builder"; void MaterialAssetDependenciesComponent::Reflect(ReflectContext* context) { diff --git a/Gems/Atom/RPI/Code/Source/RPI.Builders/Model/ModelExporterComponent.cpp b/Gems/Atom/RPI/Code/Source/RPI.Builders/Model/ModelExporterComponent.cpp index f7e672ab32..4539f4b432 100644 --- a/Gems/Atom/RPI/Code/Source/RPI.Builders/Model/ModelExporterComponent.cpp +++ b/Gems/Atom/RPI/Code/Source/RPI.Builders/Model/ModelExporterComponent.cpp @@ -37,7 +37,7 @@ namespace AZ { namespace RPI { - static const char* s_exporterName = "Atom Model Builder"; + [[maybe_unused]] static const char* s_exporterName = "Atom Model Builder"; ModelExporterComponent::ModelExporterComponent() { diff --git a/Gems/Atom/RPI/Code/Source/RPI.Builders/Pass/PassBuilder.cpp b/Gems/Atom/RPI/Code/Source/RPI.Builders/Pass/PassBuilder.cpp index b67f1643df..d5e243c687 100644 --- a/Gems/Atom/RPI/Code/Source/RPI.Builders/Pass/PassBuilder.cpp +++ b/Gems/Atom/RPI/Code/Source/RPI.Builders/Pass/PassBuilder.cpp @@ -28,7 +28,7 @@ namespace AZ { namespace { - static const char* PassBuilderName = "PassBuilder"; + [[maybe_unused]] static const char* PassBuilderName = "PassBuilder"; static const char* PassBuilderJobKey = "Pass Asset Builder"; static const char* PassAssetExtension = "pass"; } diff --git a/Gems/AtomLyIntegration/AtomBridge/Code/Source/Editor/AssetCollectionAsyncLoaderTestComponent.cpp b/Gems/AtomLyIntegration/AtomBridge/Code/Source/Editor/AssetCollectionAsyncLoaderTestComponent.cpp index ef902fec3e..8270901b6b 100644 --- a/Gems/AtomLyIntegration/AtomBridge/Code/Source/Editor/AssetCollectionAsyncLoaderTestComponent.cpp +++ b/Gems/AtomLyIntegration/AtomBridge/Code/Source/Editor/AssetCollectionAsyncLoaderTestComponent.cpp @@ -25,7 +25,7 @@ namespace AZ { namespace AtomBridge { - static constexpr char AssetCollectionAsyncLoaderTestComponentName[] = " AssetCollectionAsyncLoaderTestComponent"; + [[maybe_unused]] static constexpr char AssetCollectionAsyncLoaderTestComponentName[] = " AssetCollectionAsyncLoaderTestComponent"; void AssetCollectionAsyncLoaderTestComponent::Reflect(AZ::ReflectContext* context) { diff --git a/Gems/EMotionFX/Code/Source/Editor/Plugins/Ragdoll/RagdollNodeInspectorPlugin.cpp b/Gems/EMotionFX/Code/Source/Editor/Plugins/Ragdoll/RagdollNodeInspectorPlugin.cpp index 171100592d..cb5c525cec 100644 --- a/Gems/EMotionFX/Code/Source/Editor/Plugins/Ragdoll/RagdollNodeInspectorPlugin.cpp +++ b/Gems/EMotionFX/Code/Source/Editor/Plugins/Ragdoll/RagdollNodeInspectorPlugin.cpp @@ -50,26 +50,21 @@ namespace EMotionFX return newPlugin; } - bool RagdollNodeInspectorPlugin::PhysXGemAvailable() const + bool RagdollNodeInspectorPlugin::IsPhysXGemAvailable() const { AZ::SerializeContext* serializeContext = nullptr; AZ::ComponentApplicationBus::BroadcastResult(serializeContext, &AZ::ComponentApplicationBus::Events::GetSerializeContext); - if (serializeContext) - { - // TypeId of D6JointLimitConfiguration - const AZ::SerializeContext::ClassData* classData = serializeContext->FindClassData(AZ::TypeId::CreateString("{90C5C23D-16C0-4F23-AD50-A190E402388E}")); - if (classData && ColliderHelpers::AreCollidersReflected()) - { - return true; - } - } - return false; + // TypeId of PhysX::SystemComponent + const char* typeIDPhysXSystem = "{85F90819-4D9A-4A77-AB89-68035201F34B}"; + + return serializeContext + && serializeContext->FindClassData(AZ::TypeId::CreateString(typeIDPhysXSystem)); } bool RagdollNodeInspectorPlugin::Init() { - if (PhysXGemAvailable()) + if (IsPhysXGemAvailable() && ColliderHelpers::AreCollidersReflected()) { m_nodeWidget = new RagdollNodeWidget(); m_nodeWidget->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); diff --git a/Gems/EMotionFX/Code/Source/Editor/Plugins/Ragdoll/RagdollNodeInspectorPlugin.h b/Gems/EMotionFX/Code/Source/Editor/Plugins/Ragdoll/RagdollNodeInspectorPlugin.h index 2df0fc2d95..36a33c1cd3 100644 --- a/Gems/EMotionFX/Code/Source/Editor/Plugins/Ragdoll/RagdollNodeInspectorPlugin.h +++ b/Gems/EMotionFX/Code/Source/Editor/Plugins/Ragdoll/RagdollNodeInspectorPlugin.h @@ -80,7 +80,7 @@ namespace EMotionFX void OnPasteJointLimits(); private: - bool PhysXGemAvailable() const; + bool IsPhysXGemAvailable() const; RagdollNodeWidget* m_nodeWidget; diff --git a/Gems/EMotionFX/Code/Tests/D6JointLimitConfiguration.h b/Gems/EMotionFX/Code/Tests/D6JointLimitConfiguration.h index c35ed4fefe..edb7b57017 100644 --- a/Gems/EMotionFX/Code/Tests/D6JointLimitConfiguration.h +++ b/Gems/EMotionFX/Code/Tests/D6JointLimitConfiguration.h @@ -14,14 +14,13 @@ namespace EMotionFX { // Add so that RagdollNodeInspectorPlugin::PhysXCharactersGemAvailable() will return the correct value // We duplicated the D6JointLimitConfiguration because it doesn't exist in the test environment. - class D6JointLimitConfiguration + struct D6JointLimitConfiguration : public AzPhysics::JointConfiguration { public: AZ_CLASS_ALLOCATOR(D6JointLimitConfiguration, AZ::SystemAllocator, 0); // This uses the same uuid as the production D6JointLimitConfiguration. - // The Ragdoll UI uses this UUID to see if physx is available. - AZ_RTTI(D6JointLimitConfiguration, "{90C5C23D-16C0-4F23-AD50-A190E402388E}", AzPhysics::JointConfiguration); + AZ_RTTI(D6JointLimitConfiguration, "{88E067B4-21E8-4FFA-9142-6C52605B704C}", AzPhysics::JointConfiguration); static void Reflect(AZ::ReflectContext* context); diff --git a/Gems/EMotionFX/Code/Tests/Mocks/PhysicsSystem.h b/Gems/EMotionFX/Code/Tests/Mocks/PhysicsSystem.h index a78fe52aa1..882d198092 100644 --- a/Gems/EMotionFX/Code/Tests/Mocks/PhysicsSystem.h +++ b/Gems/EMotionFX/Code/Tests/Mocks/PhysicsSystem.h @@ -8,6 +8,8 @@ #pragma once +#include +#include #include #include #include @@ -20,6 +22,20 @@ namespace Physics , AZ::Interface::Registrar { public: + // This uses the same uuid as the production PhysX::SystemComponent. + // The Ragdoll UI uses this UUID to see if physx is available. + AZ_RTTI(MockPhysicsSystem, "{85F90819-4D9A-4A77-AB89-68035201F34B}"); + + static void Reflect(AZ::ReflectContext* context) + { + if (auto serializeContext = azrtti_cast(context)) + { + serializeContext->Class() + ->Version(0) + ; + } + } + MockPhysicsSystem() { BusConnect(); diff --git a/Gems/EMotionFX/Code/Tests/ProvidesUI/Ragdoll/CanCopyPasteColliders.cpp b/Gems/EMotionFX/Code/Tests/ProvidesUI/Ragdoll/CanCopyPasteColliders.cpp index a30750071e..4f43e7dae5 100644 --- a/Gems/EMotionFX/Code/Tests/ProvidesUI/Ragdoll/CanCopyPasteColliders.cpp +++ b/Gems/EMotionFX/Code/Tests/ProvidesUI/Ragdoll/CanCopyPasteColliders.cpp @@ -39,7 +39,10 @@ namespace EMotionFX UIFixture::SetUp(); - D6JointLimitConfiguration::Reflect(GetSerializeContext()); + AZ::SerializeContext* serializeContext = GetSerializeContext(); + + Physics::MockPhysicsSystem::Reflect(serializeContext); // Required by Ragdoll plugin to fake PhysX Gem is available + D6JointLimitConfiguration::Reflect(serializeContext); EXPECT_CALL(m_jointHelpers, GetSupportedJointTypeIds) .WillRepeatedly(testing::Return(AZStd::vector{ azrtti_typeid() })); diff --git a/Gems/EMotionFX/Code/Tests/ProvidesUI/Ragdoll/CanCopyPasteJointLimits.cpp b/Gems/EMotionFX/Code/Tests/ProvidesUI/Ragdoll/CanCopyPasteJointLimits.cpp index 7fd0ec61e1..8e4fba0dd6 100644 --- a/Gems/EMotionFX/Code/Tests/ProvidesUI/Ragdoll/CanCopyPasteJointLimits.cpp +++ b/Gems/EMotionFX/Code/Tests/ProvidesUI/Ragdoll/CanCopyPasteJointLimits.cpp @@ -41,7 +41,10 @@ namespace EMotionFX { using testing::_; - D6JointLimitConfiguration::Reflect(GetSerializeContext()); + AZ::SerializeContext* serializeContext = GetSerializeContext(); + + Physics::MockPhysicsSystem::Reflect(serializeContext); // Required by Ragdoll plugin to fake PhysX Gem is available + D6JointLimitConfiguration::Reflect(serializeContext); EMStudio::GetMainWindow()->ApplicationModeChanged("Physics"); diff --git a/Gems/EMotionFX/Code/Tests/UI/CanAddToSimulatedObject.cpp b/Gems/EMotionFX/Code/Tests/UI/CanAddToSimulatedObject.cpp index ae1752cddd..e27d558664 100644 --- a/Gems/EMotionFX/Code/Tests/UI/CanAddToSimulatedObject.cpp +++ b/Gems/EMotionFX/Code/Tests/UI/CanAddToSimulatedObject.cpp @@ -41,6 +41,7 @@ namespace EMotionFX AZ::SerializeContext* serializeContext = nullptr; AZ::ComponentApplicationBus::BroadcastResult(serializeContext, &AZ::ComponentApplicationBus::Events::GetSerializeContext); + Physics::MockPhysicsSystem::Reflect(serializeContext); // Required by Ragdoll plugin to fake PhysX Gem is available D6JointLimitConfiguration::Reflect(serializeContext); SetupPluginWindows(); diff --git a/Gems/EMotionFX/Code/Tests/UI/RagdollEditTests.cpp b/Gems/EMotionFX/Code/Tests/UI/RagdollEditTests.cpp index b700a39472..1c39cde5b6 100644 --- a/Gems/EMotionFX/Code/Tests/UI/RagdollEditTests.cpp +++ b/Gems/EMotionFX/Code/Tests/UI/RagdollEditTests.cpp @@ -40,6 +40,7 @@ namespace EMotionFX AZ::SerializeContext* serializeContext = nullptr; AZ::ComponentApplicationBus::BroadcastResult(serializeContext, &AZ::ComponentApplicationBus::Events::GetSerializeContext); + Physics::MockPhysicsSystem::Reflect(serializeContext); // Required by Ragdoll plugin to fake PhysX Gem is available D6JointLimitConfiguration::Reflect(serializeContext); EXPECT_CALL(m_jointHelpers, GetSupportedJointTypeIds) diff --git a/Gems/EditorPythonBindings/Code/Source/PythonProxyBus.cpp b/Gems/EditorPythonBindings/Code/Source/PythonProxyBus.cpp index 561daa269e..38e8ad6b21 100644 --- a/Gems/EditorPythonBindings/Code/Source/PythonProxyBus.cpp +++ b/Gems/EditorPythonBindings/Code/Source/PythonProxyBus.cpp @@ -293,7 +293,7 @@ namespace EditorPythonBindings handler->m_ebus->m_name.c_str(), eventName); } - void OnEventGenericHook(const char* eventName, pybind11::function callback, [[maybe_unused]] int eventIndex, AZ::BehaviorValueParameter* result, int numParameters, AZ::BehaviorValueParameter* parameters) + void OnEventGenericHook([[maybe_unused]] const char* eventName, pybind11::function callback, [[maybe_unused]] int eventIndex, AZ::BehaviorValueParameter* result, int numParameters, AZ::BehaviorValueParameter* parameters) { // build the parameters to send to callback Convert::StackVariableAllocator stackVariableAllocator; diff --git a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerClickOrTap.inl b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerClickOrTap.inl index 77f6044642..b14ef18994 100644 --- a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerClickOrTap.inl +++ b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerClickOrTap.inl @@ -73,12 +73,12 @@ inline Gestures::RecognizerClickOrTap::~RecognizerClickOrTap() //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerClickOrTap::OnPressedEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } - const CTimeValue currentTime = gEnv->pTimer->GetFrameStartTime(); + const CTimeValue currentTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime() : CTimeValue(); switch (m_currentState) { case State::Idle: @@ -120,7 +120,7 @@ inline bool Gestures::RecognizerClickOrTap::OnPressedEvent(const AZ::Vector2& sc //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerClickOrTap::OnDownEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } @@ -129,7 +129,7 @@ inline bool Gestures::RecognizerClickOrTap::OnDownEvent(const AZ::Vector2& scree { case State::Pressed: { - const CTimeValue currentTime = gEnv->pTimer->GetFrameStartTime(); + const CTimeValue currentTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime() : CTimeValue(); if ((currentTime.GetDifferenceInSeconds(m_timeOfLastEvent) > m_config.maxSecondsHeld) || (screenPosition.GetDistance(m_positionOfLastEvent) > m_config.maxPixelsMoved)) { @@ -159,7 +159,7 @@ inline bool Gestures::RecognizerClickOrTap::OnDownEvent(const AZ::Vector2& scree //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerClickOrTap::OnReleasedEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } @@ -168,7 +168,7 @@ inline bool Gestures::RecognizerClickOrTap::OnReleasedEvent(const AZ::Vector2& s { case State::Pressed: { - const CTimeValue currentTime = gEnv->pTimer->GetFrameStartTime(); + const CTimeValue currentTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime() : CTimeValue(); if ((currentTime.GetDifferenceInSeconds(m_timeOfLastEvent) > m_config.maxSecondsHeld) || (screenPosition.GetDistance(m_positionOfLastEvent) > m_config.maxPixelsMoved)) { diff --git a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerDrag.inl b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerDrag.inl index c473293765..0c83893c9d 100644 --- a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerDrag.inl +++ b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerDrag.inl @@ -59,7 +59,7 @@ inline Gestures::RecognizerDrag::~RecognizerDrag() //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerDrag::OnPressedEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } @@ -68,7 +68,7 @@ inline bool Gestures::RecognizerDrag::OnPressedEvent(const AZ::Vector2& screenPo { case State::Idle: { - m_startTime = gEnv->pTimer->GetFrameStartTime().GetValue(); + m_startTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime().GetValue() : 0; m_startPosition = screenPosition; m_currentPosition = screenPosition; m_currentState = State::Pressed; @@ -90,7 +90,7 @@ inline bool Gestures::RecognizerDrag::OnPressedEvent(const AZ::Vector2& screenPo //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerDrag::OnDownEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } @@ -101,7 +101,7 @@ inline bool Gestures::RecognizerDrag::OnDownEvent(const AZ::Vector2& screenPosit { case State::Pressed: { - const CTimeValue currentTime = gEnv->pTimer->GetFrameStartTime(); + const CTimeValue currentTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime() : CTimeValue(); if ((currentTime.GetDifferenceInSeconds(m_startTime) >= m_config.minSecondsHeld) && (GetDistance() >= m_config.minPixelsMoved)) { diff --git a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerHold.inl b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerHold.inl index 99a3f7042c..6af8a10890 100644 --- a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerHold.inl +++ b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerHold.inl @@ -59,7 +59,7 @@ inline Gestures::RecognizerHold::~RecognizerHold() //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerHold::OnPressedEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } @@ -68,7 +68,7 @@ inline bool Gestures::RecognizerHold::OnPressedEvent(const AZ::Vector2& screenPo { case State::Idle: { - m_startTime = gEnv->pTimer->GetFrameStartTime().GetValue(); + m_startTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime().GetValue() : 0; m_startPosition = screenPosition; m_currentPosition = screenPosition; m_currentState = State::Pressed; @@ -90,7 +90,7 @@ inline bool Gestures::RecognizerHold::OnPressedEvent(const AZ::Vector2& screenPo //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerHold::OnDownEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } @@ -101,7 +101,7 @@ inline bool Gestures::RecognizerHold::OnDownEvent(const AZ::Vector2& screenPosit { case State::Pressed: { - const CTimeValue currentTime = gEnv->pTimer->GetFrameStartTime(); + const CTimeValue currentTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime() : CTimeValue(); if (screenPosition.GetDistance(m_startPosition) > m_config.maxPixelsMoved) { // Hold recognition failed. diff --git a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerPinch.inl b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerPinch.inl index c64e310c36..642d781c35 100644 --- a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerPinch.inl +++ b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerPinch.inl @@ -106,13 +106,13 @@ inline float AngleInDegreesBetweenVectors(const AZ::Vector2& vec0, const AZ::Vec //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerPinch::OnDownEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex > s_maxPinchPointerIndex) + if (pointerIndex > s_maxPinchPointerIndex) { return false; } m_currentPositions[pointerIndex] = screenPosition; - m_lastUpdateTimes[pointerIndex] = gEnv->pTimer->GetFrameStartTime().GetValue(); + m_lastUpdateTimes[pointerIndex] = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime().GetValue() : 0; if (m_lastUpdateTimes[0] != m_lastUpdateTimes[1]) { // We need to wait until both touches have been updated this frame. diff --git a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerRotate.inl b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerRotate.inl index da6f84afca..2ae504e309 100644 --- a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerRotate.inl +++ b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerRotate.inl @@ -95,13 +95,13 @@ inline bool Gestures::RecognizerRotate::OnPressedEvent(const AZ::Vector2& screen //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerRotate::OnDownEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex > s_maxRotatePointerIndex) + if (pointerIndex > s_maxRotatePointerIndex) { return false; } m_currentPositions[pointerIndex] = screenPosition; - m_lastUpdateTimes[pointerIndex] = gEnv->pTimer->GetFrameStartTime().GetValue(); + m_lastUpdateTimes[pointerIndex] = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime().GetValue() : 0; if (m_lastUpdateTimes[0] != m_lastUpdateTimes[1]) { // We need to wait until both touches have been updated this frame. diff --git a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerSwipe.inl b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerSwipe.inl index f84e85df52..5f879ce423 100644 --- a/Gems/Gestures/Code/Include/Gestures/GestureRecognizerSwipe.inl +++ b/Gems/Gestures/Code/Include/Gestures/GestureRecognizerSwipe.inl @@ -59,7 +59,7 @@ inline Gestures::RecognizerSwipe::~RecognizerSwipe() //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerSwipe::OnPressedEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } @@ -68,7 +68,7 @@ inline bool Gestures::RecognizerSwipe::OnPressedEvent(const AZ::Vector2& screenP { case State::Idle: { - m_startTime = gEnv->pTimer->GetFrameStartTime().GetValue(); + m_startTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime().GetValue() : 0; m_startPosition = screenPosition; m_endPosition = screenPosition; m_currentState = State::Pressed; @@ -89,7 +89,7 @@ inline bool Gestures::RecognizerSwipe::OnPressedEvent(const AZ::Vector2& screenP //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerSwipe::OnDownEvent([[maybe_unused]] const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } @@ -98,7 +98,7 @@ inline bool Gestures::RecognizerSwipe::OnDownEvent([[maybe_unused]] const AZ::Ve { case State::Pressed: { - const CTimeValue currentTime = gEnv->pTimer->GetFrameStartTime(); + const CTimeValue currentTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime() : CTimeValue(); if (currentTime.GetDifferenceInSeconds(m_startTime) > m_config.maxSecondsHeld) { // Swipe recognition failed because we took too long. @@ -125,7 +125,7 @@ inline bool Gestures::RecognizerSwipe::OnDownEvent([[maybe_unused]] const AZ::Ve //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Gestures::RecognizerSwipe::OnReleasedEvent(const AZ::Vector2& screenPosition, uint32_t pointerIndex) { - if (!gEnv || !gEnv->pTimer || pointerIndex != m_config.pointerIndex) + if (pointerIndex != m_config.pointerIndex) { return false; } @@ -134,7 +134,7 @@ inline bool Gestures::RecognizerSwipe::OnReleasedEvent(const AZ::Vector2& screen { case State::Pressed: { - const CTimeValue currentTime = gEnv->pTimer->GetFrameStartTime(); + const CTimeValue currentTime = (gEnv && gEnv->pTimer) ? gEnv->pTimer->GetFrameStartTime() : CTimeValue(); if ((currentTime.GetDifferenceInSeconds(m_startTime) <= m_config.maxSecondsHeld) && (screenPosition.GetDistance(m_startPosition) >= m_config.minPixelsMoved)) { diff --git a/Gems/LmbrCentral/Code/Source/Builders/MaterialBuilder/MaterialBuilderComponent.cpp b/Gems/LmbrCentral/Code/Source/Builders/MaterialBuilder/MaterialBuilderComponent.cpp index b5dce54f85..c06b21337b 100644 --- a/Gems/LmbrCentral/Code/Source/Builders/MaterialBuilder/MaterialBuilderComponent.cpp +++ b/Gems/LmbrCentral/Code/Source/Builders/MaterialBuilder/MaterialBuilderComponent.cpp @@ -19,7 +19,7 @@ namespace MaterialBuilder { - const char s_materialBuilder[] = "MaterialBuilder"; + [[maybe_unused]] const char s_materialBuilder[] = "MaterialBuilder"; namespace Internal { diff --git a/Gems/LmbrCentral/Code/Source/Builders/SliceBuilder/SliceBuilderWorker.cpp b/Gems/LmbrCentral/Code/Source/Builders/SliceBuilder/SliceBuilderWorker.cpp index 14096f73d2..79cf3ac282 100644 --- a/Gems/LmbrCentral/Code/Source/Builders/SliceBuilder/SliceBuilderWorker.cpp +++ b/Gems/LmbrCentral/Code/Source/Builders/SliceBuilder/SliceBuilderWorker.cpp @@ -49,7 +49,7 @@ namespace SliceBuilder } } // namespace anonymous - static const char* const s_sliceBuilder = "SliceBuilder"; + [[maybe_unused]] static const char* const s_sliceBuilder = "SliceBuilder"; static const char* const s_sliceBuilderSettingsFilename = "SliceBuilderSettings.json"; SliceBuilderWorker::SliceBuilderWorker() diff --git a/Gems/LyShine/Code/Pipeline/LyShineBuilder/UiCanvasBuilderWorker.cpp b/Gems/LyShine/Code/Pipeline/LyShineBuilder/UiCanvasBuilderWorker.cpp index 68ce1497f0..e0802fa4d1 100644 --- a/Gems/LyShine/Code/Pipeline/LyShineBuilder/UiCanvasBuilderWorker.cpp +++ b/Gems/LyShine/Code/Pipeline/LyShineBuilder/UiCanvasBuilderWorker.cpp @@ -31,7 +31,7 @@ namespace LyShine { - static const char* const s_uiSliceBuilder = "UiSliceBuilder"; + [[maybe_unused]] static const char* const s_uiSliceBuilder = "UiSliceBuilder"; void UiCanvasBuilderWorker::ShutDown() { diff --git a/Gems/ScriptCanvas/Code/Include/ScriptCanvas/Core/SubgraphInterface.cpp b/Gems/ScriptCanvas/Code/Include/ScriptCanvas/Core/SubgraphInterface.cpp index 5a88036a0f..d77789b6e3 100644 --- a/Gems/ScriptCanvas/Code/Include/ScriptCanvas/Core/SubgraphInterface.cpp +++ b/Gems/ScriptCanvas/Code/Include/ScriptCanvas/Core/SubgraphInterface.cpp @@ -33,7 +33,7 @@ namespace SubgraphInterfaceCpp Current }; - const size_t k_maxTabs = 20; + [[maybe_unused]] const size_t k_maxTabs = 20; AZ_INLINE const char* GetTabs(size_t tabs) { diff --git a/Gems/ScriptCanvas/Code/Include/ScriptCanvas/Execution/Interpreted/ExecutionInterpretedAPI.cpp b/Gems/ScriptCanvas/Code/Include/ScriptCanvas/Execution/Interpreted/ExecutionInterpretedAPI.cpp index e93fd1263d..8d324e95c0 100644 --- a/Gems/ScriptCanvas/Code/Include/ScriptCanvas/Execution/Interpreted/ExecutionInterpretedAPI.cpp +++ b/Gems/ScriptCanvas/Code/Include/ScriptCanvas/Execution/Interpreted/ExecutionInterpretedAPI.cpp @@ -45,7 +45,7 @@ namespace ExecutionInterpretedAPICpp 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, k_Bad,k_Bad,k_Bad,k_Bad,k_Bad,k_Bad,k_Bad, 10, 11, 12, 13, 14, 15 }; - constexpr unsigned char k_FastValuesIndexSentinel = 'G' - '0'; + [[maybe_unused]] constexpr unsigned char k_FastValuesIndexSentinel = 'G' - '0'; template T* GetAs(AZ::BehaviorValueParameter& argument) diff --git a/Gems/ScriptEvents/Code/Builder/ScriptEventsBuilderWorker.cpp b/Gems/ScriptEvents/Code/Builder/ScriptEventsBuilderWorker.cpp index bc9ed886ea..caf3d3c42c 100644 --- a/Gems/ScriptEvents/Code/Builder/ScriptEventsBuilderWorker.cpp +++ b/Gems/ScriptEvents/Code/Builder/ScriptEventsBuilderWorker.cpp @@ -27,7 +27,7 @@ namespace ScriptEventsBuilder { - static const char* s_scriptEventsBuilder = "ScriptEventsBuilder"; + [[maybe_unused]] static const char* s_scriptEventsBuilder = "ScriptEventsBuilder"; Worker::Worker() { diff --git a/Gems/Terrain/Code/Source/TerrainRenderer/TerrainFeatureProcessor.cpp b/Gems/Terrain/Code/Source/TerrainRenderer/TerrainFeatureProcessor.cpp index 2178151e3d..c4aaa6db04 100644 --- a/Gems/Terrain/Code/Source/TerrainRenderer/TerrainFeatureProcessor.cpp +++ b/Gems/Terrain/Code/Source/TerrainRenderer/TerrainFeatureProcessor.cpp @@ -36,7 +36,7 @@ namespace Terrain namespace { const uint32_t DEFAULT_UploadBufferSize = 512 * 1024; // 512k - const char* TerrainFPName = "TerrainFeatureProcessor"; + [[maybe_unused]] const char* TerrainFPName = "TerrainFeatureProcessor"; } namespace ShaderInputs