Example #1
0
        static public bool ShouldExecuteInEditMode(this ScriptableObject item)
        {
            Type type = item.GetTypeEX();

            if (type.HasCustomAttributeOfType <ExecuteInEditMode>(true) || type.HasCustomAttributeOfType <ExecuteAlways>(true))
            {
                return(true);
            }

            return(false);
        }