Reference that already set is only valid on last spawned actor, others will return null???

Actor:

It’s spawning from other actor class, This is how it spawned.

This actor is dynamic spawned.
But I don’t understand why this reference only valid in last spawned actor?
All function work fine in last spawned actor, But not work in others,
Can someone help me please?

I assume you’re doing the line trace on tick? Then the hand variable might only be valid for one frame.

I don’t know your trace code, does it set the variable even when the trace doesn’t hit anything?

Hand variable only set if i call the interface, problem is this logic is work, but only work on last of I spawned actor.

Ok, I’m edited the post :slight_smile:

Where is the spawning? Can you show that?

Ok, I found the problem, BUT IT SO WERID…

Node “Enable Input” cause the problem,
I don’t know why this node can effect my variable…
Can someone explane the problem?