Scene/Game tab switching when recooking in playmode

   1452   1   1
User Avatar
Member
1 posts
Joined: Feb. 2021
Offline
Hey all,
A friend of mine and I have been working on a dungeon generator which we've imported to Unity. It's meant to be able to generate new dungeons at runtime, which it does, but this requires a recook.

The interesting part is that whenever the script I wrote does the recook, Unity switches from my game tab back to my scene tab. Here's a link [imgur.com] to a gif of the behavior, and a code snippet for the generation.

Any insight on what I'm doing wrong or how to fix this behavior is much appreciated!

Attachments:
snippet.PNG (20.9 KB)

User Avatar
Member
100 posts
Joined: Dec. 2020
Offline
That's an interesting bug. I always have my Game/Scene tabs in separate windows so I never noticed this. I'll log this into our database.
  • Quick Links