unity-ui-controller icon indicating copy to clipboard operation
unity-ui-controller copied to clipboard

Set the initial state

Open mschakulat opened this issue 9 years ago • 2 comments

Thank you for this great plugin. One question: Is it possible to set the initial state somehow? The problem is, that the initial state seems always to be the "show" animation. So if i start the scene, all elements will slide/fade in. I can't figure out how to fix it.

Thanks in advance Micha

mschakulat avatar Jun 20 '17 08:06 mschakulat

If the component onHideAction is Disable or Destory, you can just let the GameObject inactive on scene.

You can see the "Popups" and "CSS" Example in Assets/UIController/Examples.unitypackage, these also is initial Hide state.

Thanks for your issue :)

johnsoncodehk avatar Jun 20 '17 17:06 johnsoncodehk

In 2.0 version, you can set the value of showOnAwake. If enabled, show animation will start playing when GameObject enable.

johnsoncodehk avatar Sep 08 '17 22:09 johnsoncodehk