UnityEditor.CurvePresetLibraryEditor.OnEnable C# (CSharp) Method

OnEnable() public method

public OnEnable ( ) : void
return void
        public void OnEnable()
        {
            string assetPath = AssetDatabase.GetAssetPath(this.target.GetInstanceID());
            char[] trimChars = new char[] { '.' };
            this.m_CurveLibraryType = this.GetCurveLibraryTypeFromExtension(Path.GetExtension(assetPath).TrimStart(trimChars));
            this.m_GenericPresetLibraryInspector = new GenericPresetLibraryInspector<CurvePresetLibrary>(this.target, this.GetHeader(), new Action<string>(this.OnEditButtonClicked));
            this.m_GenericPresetLibraryInspector.presetSize = new Vector2(72f, 20f);
            this.m_GenericPresetLibraryInspector.lineSpacing = 5f;
        }