Hey Eric,
here's what I would try: (brainstorming alert - I've never done this myself
this way... :) )
Inside your custom property implementation I'd implement an onChanged()
callback that collects all relevant parameter values, serializes them into
a json string and stores this string "outside" your scene (either store it
in a custom preference, or just dump it to a text file in the user folder)
Then I'd implement events that ensure that your CustomProperty is always
present on the ActiveSceneRoot (onStartup, onEndSceneOpen, onEndNewScene,
...)
After ensuring the presence of your CustomProperty instance these events
would load back your json string and update the Property accordingly.
Cheers, Martin
--
Martin Chatterjee
[ Freelance Technical Director ]
[ http://www.chatterjee.de ]
[ https://vimeo.com/chatterjee ]
On Mon, Mar 23, 2015 at 4:07 PM, Eric Thivierge <[email protected]>
wrote:
> Hello,
>
> Was wondering if there is a way to have a self installing property survive
> a New Scene call. Typically I attach it to the Scene Root but that won't
> survive a New Scene call.
>
> I have a UI that I would like to save the state of over a new scene call.
>
> Anyone have a trick for this?
>
> Eric T.
>
>