Hi, I’m trying to copy the value of a property from an object that is in a different scene, but it is not working.
I basically want to copy the amount of “Seconds” (integer property) that are on my Hud to my main scene, is it possible?
This logic is in the Main Scene, and the “object” is in an overlay scene.
The “object” property of the Overlay Scene is “Text Game Property”, Integer. (The property of my object in the main scene is also integer type)
this script can be used on any object on your HUD scene. hud object requires 2 game properties:
“OBJECT” - a string to tell the script what object to get the property from on the main scene
“PROPERTY” - a string to tell the script what property to copy