Skip to content

Fix: Track and correctly destroy created component editors.#39

Open
IhaveJuss wants to merge 1 commit intoannulusgames:mainfrom
IhaveJuss:feature/fix-errors-on-editor-open
Open

Fix: Track and correctly destroy created component editors.#39
IhaveJuss wants to merge 1 commit intoannulusgames:mainfrom
IhaveJuss:feature/fix-errors-on-editor-open

Conversation

@IhaveJuss
Copy link

Issue

Currently, when I use Arch Hierarchy to inspect my hybrid entities, on consecutive game runs my console is full of editor errors.
console_logs

This happens because when we create Editors for MonoBehaviour components, we never track them and never destroy their instances in OnDisable.

Fix

  • Track all created Editor instances.
  • Properly destroy them in OnDisable.

Track and destroy editors created during entity inspection.
Prevent Unity errors on subsequent editor draw calls.
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

Successfully merging this pull request may close these issues.

1 participant