UnityEditor.Editor.IsAppropriateFileOpenForEdit C# (CSharp) Method

IsAppropriateFileOpenForEdit() static private method

static private IsAppropriateFileOpenForEdit ( Object assetObject ) : bool
assetObject Object
return bool
        internal static bool IsAppropriateFileOpenForEdit(Object assetObject)
        {
            string str;
            return IsAppropriateFileOpenForEdit(assetObject, out str);
        }

Same methods

Editor::IsAppropriateFileOpenForEdit ( Object assetObject, string &message ) : bool

Usage Example

コード例 #1
0
ファイル: Editor.cs プロジェクト: zzrx79/UnityDecompiled
        internal virtual bool IsEnabled()
        {
            UnityEngine.Object[] targets = this.targets;
            int  i = 0;
            bool result;

            while (i < targets.Length)
            {
                UnityEngine.Object @object = targets[i];
                if ((@object.hideFlags & HideFlags.NotEditable) != HideFlags.None)
                {
                    result = false;
                }
                else
                {
                    if (!EditorUtility.IsPersistent(@object) || Editor.IsAppropriateFileOpenForEdit(@object))
                    {
                        i++;
                        continue;
                    }
                    result = false;
                }
                return(result);
            }
            result = true;
            return(result);
        }
All Usage Examples Of UnityEditor.Editor::IsAppropriateFileOpenForEdit