Hi,
Let’s say I have a component that has some properties, like some mouse cursor icon and some icons, and I plan to create several scenes with the same component with the same property values attached to each main camera.
How could I define these values just once globally and reuse (share) that configuration across all instances of the component in all scenes?
I envision I will have to create some custom Editor window to allow the designer to define these values. But I need to know if it possible to store the resource references somewhere and link all component instances to this.
Thanks in advance for any help.
As far as I can tell, static properties can only be set programmatically. I'm still missing here how can I let the designer specify these in a custom editor window and make these available at run time.
– crypticmindMake Editor script which changes these values. Or assign it to the GameObject and add make script to that object: function Awake () { DontDestroyOnLoad (this.gameObject); }
– proandriusCool, take care!
– proandrius