neon-age / Smart-Hierarchy

Human-friendly hierarchy for Unity.
MIT License
599 stars 43 forks source link

#if UNITY_EDITOR preprocessor #5

Closed neon-age closed 3 years ago

neon-age commented 3 years ago

Added missing preprocessor to SettingsProvider. Fixes #4

Initially, I didn't made assembly Editor-only because it makes impossible to add Folder MonoBehaviour to game objects (which is very silly restriction). And because of it, I forgot to wrap new script around #if UNITY_EDITOR preprocessor.

Don't see any workaround without making another assembly (for two lines script..). Maybe better change how hierarchy looks up for "Folder" objects, so we can get rid of Folder component?