setProperty - value triggered on Scene loading possible?
Hi all,
just a quick question thats on my mind atm.
Is it possible to set a property on loading a scene, for example making a uielement "visible" with something like the following:
<action event="Scene01_is_loading" type="setProperty" target="scene_layer_switching_button" property="visible" value="true" />
At present i am using this from hotspots as a release event, but i am sure a more elegant solution is out there, my current way to get the job done adds more lines of xml than is probably necessary as each hotspot leading to other scenes that do not use the particular uielement need to set:
<action event="release" type="setProperty" target="scene_switching_button" property="visible" value="false" />
So to recap is it possible within a <Scene> x... </Scene> to use a "setProperty" on loading the scene to set a "value", to circumvent the use of these events attached to hotspots declaired in <global> .... </global> ?
fieldOfView | SPi-V dev
Re: setProperty - value triggered on Scene loading possible?
You would have to attach a behavior to the _scene, and use the 'enter' event:
<behavior id="mybehavior" object="_scene"><action event="enter" type="setproperty" target=... etc ...>
</behavior>