Store Raycast Results in Local Variables

Hi there,

Most of the time I store the results of a raycast in variables for temporary use, so it would come in handy to be able to use local variables instead of declaring scene variables for them.

Thanks!

1 Like

I agree. Variables should all be equal. Any type of variable should be able to be used. Local, scene, global and maybe even object. A variable is a variable.

2 Likes

Just to confirm, this could be a detection error. Have you tested to see if it actually works even though it says it’s not declared? (I ask since there’s no red squiggle to indicate a missing expression/target)

I tested it with local and global variables but it only works with scene variables. So it’s not a detection error even though it doesn’t show the red squiggle.

2 Likes

Some actions/conditions does not use the new variable format yet. Another example is from the Firebase extension. I hope they’ll update it to use the new format asap.

1 Like