Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unspread/Spread State seems buggy #13

Open
cluetivity opened this issue Mar 1, 2019 · 1 comment
Open

Unspread/Spread State seems buggy #13

cluetivity opened this issue Mar 1, 2019 · 1 comment

Comments

@cluetivity
Copy link

Hello,

I have a problem with the Spreading of the Screens inside of my ScreenManager.
I spread my screens so I can edit everything nicely and then I unspread them before pressing Play as the ScreenManager won't work when I leave it spreaded.

The issue is that the unspread state does often not get saved. So I need to go into that scene again, unspread my SceneManager, change something else in the scene so that Saving the scene actually saves something together with the unspread state. But this works not always.

Is it possible to force unspreading on Play or to save the state? or make the ScreenManager work correctly although I didn't unspread my screens before playing?

when I haven't unspread my Screens before playing the scene, the Screens are not visible when showing a screen. Maybe some z-layering issue? I can see the screens getting activated in the Editor but they are not visible. When the unspread-state got saved correctly, my screens are working normal.

This is really annoying while designing screens and testing all the time.

Any feedback is appreciated.
Cheers, Rob

@Xerios
Copy link
Owner

Xerios commented Mar 2, 2019

There's a way to automate this process using:
https://docs.unity3d.com/ScriptReference/EditorApplication-playModeStateChanged.html

I've been quite busy recently, but feel free to contribute.
I'd gladly merge this feature if you create a pull request for it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants