How do you use a variable from other class?

I want to use variables that is from custom_player into game_manager verse. Is there a way to find out?

image

1 Like

@editable MyCustomPlayerDevice : custom_player = custom_player{}

Reference the verse device from the editor and then inside your code you can do something like

Print("{MyCustomPlayerDevice.VariableIWantHere}")


I don’t know why but something goes wrong…

can you show me the custom_player script?


Here it is

1 Like
@editable MyCustomPlayerDevice : Custom_Player_Init_Verse = Custom_Player_Init_Verse{}
1 Like

Thank you so much!! I solved it.

1 Like