I have an enum as a property in one script and I want to use it in another script. Can I statically reference properties of another script? Do I make a regular js script and just require
it into both scripts?
Hi there!
here are some useful guidelines and suggestions for communicating between scripts:
https://developer.playcanvas.com/en/user-manual/scripting/communication/
It mostly talks about communicating events, but can also be used to tap into script properties and attributes.
Hi @abrahmbrookes ,
Check out this forum response for a slimmed down example:
I hope this is helpful.
1 Like