create a variable in another scene?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AiTechEye

how/can i create a variable in another scene?

var a = scene.instance()
a.object =  value

Do you want to create another variable or just update the value of an existing variable? Can you provide a case scenario? What are you trying to achieve?

johnygames | 2019-12-29 14:48

as the title, i trying to create a variable in a instanced scene from code.

i making a project that contains many characters used by api:s, creating variables from the api makes the work so much easier.

AiTechEye | 2019-12-29 18:00

:bust_in_silhouette: Reply From: DarlesLSF

I think u cant create a varible like this, but u can change the value of the variable of another object using this method.