Gothic-UnZENity-Project / Gothic-UnZENity

Fan project recreating Gothic I and Gothic II in Unity Engine. Currently focussing on VR.
GNU General Public License v3.0
8 stars 2 forks source link

Add conditional show/hide of Inspector properties #64

Closed JaXt0r closed 3 months ago

JaXt0r commented 3 months ago

Unity offers no out-of-the-way feature to show/hide properties on inspector view based on other values. But it provides an API to build it.

Example: GameConfiguration.SelecrSpecificNpcsToSpawn should be visible if SpawnNPCs is activated only.

This ensures complex MonoBehaviour elements are easy to use and dependencies among properties are visible.

Todos:

Hints:

JaXt0r commented 3 months ago

I found a recommended Package which provides proper support for Separators, Groupings, etc. https://github.com/Deadcows/MyBox

image