jeffcampbellmakesgames / Entitas-Redux

An entity-component framework for Unity with code generation and visual debugging
MIT License
104 stars 13 forks source link

[BUG] Build compile error for missing Contexts.SharedInstance member #28

Closed jeffcampbellmakesgames closed 3 years ago

jeffcampbellmakesgames commented 3 years ago

Describe the bug A recent feature adding experimental playmode support accidentally compiles out the Contexts.SharedInstance member when not in the editor. This causes a compile error when building a player as that member is no longer available.

Unity Version:

To Reproduce

Expected behavior This Contexts.SharedInstance member should be available in runtime code and should not be contained in a ifdef UNITY_EDITOR block.

jeffcampbellmakesgames commented 3 years ago

This has been resolved in a fix merged to develop.