Mattshark89 / OpenFlight-VRC

MIT License
46 stars 33 forks source link

[BUG] Tablet layout can get corrupted due to updates #29

Closed Happyrobot33 closed 1 year ago

Happyrobot33 commented 1 year ago

Describe the bug Due to the way the unity layoutgroup system works, when the layoutgroup updates itself in a users scene, it's technically entered as a prefab override. This means if a update changes parts of the tablet layout, things may break due to positions being overridden

To Reproduce I unfortunately don't have a good way to reproduce this as of now

Expected behavior Upon package update , the tablet should always be refreshed to the prefabs state

Suggested fix Either on package import (hard to detect and test) or some other trigger, a editor script could loop through everything in the current scenes tablet prefab and clear the prefab overrides for the rect transforms

Happyrobot33 commented 1 year ago

Fix live in OpenFlight-1.4.0-beta.1