3 common Ways to transfer variable between script



3 common Ways to transfer variable between script

3 common Ways to transfer variable between script

if you have questions like
1. how to share variable between scripts ?
2. how to transfer variable between one script to another ?
3. how to transfer variable over another scene ?
then you are at right place. what ever game you create there is always a need to share or transfer variables between scripts. there are actually three very easy way to share variable between scripts.
1. by creating a global script
2. by sending variables with signals
3. by sending values using functions
there may be other ways also to share data but these are more common and simple way to share variable.
I hope this helps you in making your game.

Comments are closed.