Browse Source

Hide event handler components when Hide Components property is set

master
chrisgregan 10 years ago
parent
commit
bcdcd511cc
  1. 6
      Assets/Fungus/FungusScript/Scripts/FungusScript.cs

6
Assets/Fungus/FungusScript/Scripts/FungusScript.cs

@ -383,6 +383,12 @@ namespace Fungus
{
command.hideFlags = hideComponents ? HideFlags.HideInInspector : HideFlags.None;
}
EventHandler[] eventHandlers = GetComponentsInChildren<EventHandler>();
foreach (EventHandler eventHandler in eventHandlers)
{
eventHandler.hideFlags = hideComponents ? HideFlags.HideInInspector : HideFlags.None;
}
}
public virtual void ClearSelectedCommands()

Loading…
Cancel
Save