UnityEditor.CreateAssetUtility.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
        public void Clear()
        {
            this.m_EndAction = null;
            this.m_InstanceID = 0;
            this.m_Path = "";
            this.m_Icon = null;
            this.m_ResourceFile = "";
        }

Usage Example

示例#1
0
        internal override void OnAwake()
        {
            base.OnAwake();

            // Clear state that should not survive closing/starting Unity (If TreeViewState is in EditorWindow that are serialized in a layout file)
            m_CreateAssetUtility.Clear();
        }