Hey everyone!
Im having some trouble using a cast to node because the cast is failing. I need to run the Node right when the game starts so i have the input pin hooked up to an event begin play. When i try this the cast fails.
I also tried attaching the input pin to a Touch node. When i do this, the cast fails the first time and succeeds the second time.
The only reason a cast node will fail if the object that’s passed in cannot be cast to the target object. The usual reason is that the object types don’t match (for example casting Character to PlayerController will always fail).
If your second attempt works, it seems more likely that whatever you’re passing into the cast node doesn’t yet exist at first try.
What are you trying to cast? A screenshot would help.