Topic was automatically imported from the old Question2Answer platform.
Asked By
uh no
Hi, I’m remembering godot and I have forgot how to share positional data across scenes , I have a sprite3d that always needs to point at the player, and I need the player position for the look_at() function. I cannot use clones and prefer no signals, but can in a pinch. WHAT IS A SIMPLE WORKING METHOD TO SHARE DATA?,
You can add this to the list of autoloaded scenes in the project>Project Settings>Autoload. Once you have this you can add the global position to this scene rather than an individual script within a specific scene and it can be access by any of the other scenes then within the script with Global.YourFunctionOrVariableHere