diff --git a/Assets/Fungus/FungusScript/Scripts/FungusScript.cs b/Assets/Fungus/FungusScript/Scripts/FungusScript.cs index 1250ea1a..dfae7c38 100644 --- a/Assets/Fungus/FungusScript/Scripts/FungusScript.cs +++ b/Assets/Fungus/FungusScript/Scripts/FungusScript.cs @@ -383,6 +383,12 @@ namespace Fungus { command.hideFlags = hideComponents ? HideFlags.HideInInspector : HideFlags.None; } + + EventHandler[] eventHandlers = GetComponentsInChildren(); + foreach (EventHandler eventHandler in eventHandlers) + { + eventHandler.hideFlags = hideComponents ? HideFlags.HideInInspector : HideFlags.None; + } } public virtual void ClearSelectedCommands()