Thank you for the great explanation, I really like how you use a setter and getter, but I’m keep getting a runtime error when I leave the Collision Box:
“Blueprint Runtime Error: “Attempted to access Cube_C_5 via property NewVar_0, but Cube_C_5 is pending kill”. Blueprint: 10_Trigger_Box Function: Execute Ubergraph 10 Trigger Box Graph: EventGraph Node: DestroyActor”
My steps were:
- Right click the SpawnActor Cube Return Value (Output) and Promote to Variable
- I dragged to newly greated variable into the Event Graph and selected Get
- I bind the getter to the DestroyActor Target (Input)
I checked online, and I believe program thinks the getter is set to a null object? I repeated the steps a few times, thinking it had to do something with naming the variable, but with no luck.