示例#1
0
 public void OnEnable()
 {
     this.m_CurveLibraryType = this.GetCurveLibraryTypeFromExtension(Path.GetExtension(AssetDatabase.GetAssetPath(this.target.GetInstanceID())).TrimStart('.'));
     this.m_GenericPresetLibraryInspector             = new GenericPresetLibraryInspector <CurvePresetLibrary>(this.target, this.GetHeader(), new System.Action <string>(this.OnEditButtonClicked));
     this.m_GenericPresetLibraryInspector.presetSize  = new Vector2(72f, 20f);
     this.m_GenericPresetLibraryInspector.lineSpacing = 5f;
 }
        public void OnEnable()
        {
            string assetPath = AssetDatabase.GetAssetPath(base.target.GetInstanceID());

            this.m_GenericPresetLibraryInspector             = new GenericPresetLibraryInspector <DoubleCurvePresetLibrary>(base.target, this.GetHeader(assetPath), null);
            this.m_GenericPresetLibraryInspector.presetSize  = new Vector2(72f, 20f);
            this.m_GenericPresetLibraryInspector.lineSpacing = 5f;
        }
示例#3
0
        public void OnEnable()
        {
            string filePath = AssetDatabase.GetAssetPath(target.GetInstanceID());

            m_CurveLibraryType = GetCurveLibraryTypeFromExtension(Path.GetExtension(filePath).TrimStart('.'));
            m_GenericPresetLibraryInspector             = new GenericPresetLibraryInspector <CurvePresetLibrary>(target, GetHeader(), OnEditButtonClicked);
            m_GenericPresetLibraryInspector.presetSize  = new Vector2(72, 20);
            m_GenericPresetLibraryInspector.lineSpacing = 5f;
        }
示例#4
0
        public void OnEnable()
        {
            string assetPath = AssetDatabase.GetAssetPath(base.target.GetInstanceID());

            char[] trimChars = new char[] { '.' };
            this.m_CurveLibraryType = this.GetCurveLibraryTypeFromExtension(Path.GetExtension(assetPath).TrimStart(trimChars));
            this.m_GenericPresetLibraryInspector             = new GenericPresetLibraryInspector <CurvePresetLibrary>(base.target, this.GetHeader(), new Action <string>(this.OnEditButtonClicked));
            this.m_GenericPresetLibraryInspector.presetSize  = new Vector2(72f, 20f);
            this.m_GenericPresetLibraryInspector.lineSpacing = 5f;
        }
示例#5
0
 public void OnEnable()
 {
     this.m_GenericPresetLibraryInspector = new GenericPresetLibraryInspector <ColorPresetLibrary>(base.target, "Color Preset Library", new Action <string>(this.OnEditButtonClicked));
     this.m_GenericPresetLibraryInspector.useOnePixelOverlappedGrid = true;
     this.m_GenericPresetLibraryInspector.maxShowNumPresets         = 2000;
 }
 public void OnEnable()
 {
     this.m_GenericPresetLibraryInspector             = new GenericPresetLibraryInspector <GradientPresetLibrary>(base.target, "Gradient Preset Library", new Action <string>(this.OnEditButtonClicked));
     this.m_GenericPresetLibraryInspector.presetSize  = new Vector2(72f, 16f);
     this.m_GenericPresetLibraryInspector.lineSpacing = 4f;
 }
 public void OnEnable()
 {
     m_GenericPresetLibraryInspector             = new GenericPresetLibraryInspector <DoubleCurvePresetLibrary>(target, GetHeader(), null);
     m_GenericPresetLibraryInspector.presetSize  = new Vector2(72, 20);
     m_GenericPresetLibraryInspector.lineSpacing = 5f;
 }
示例#8
0
 public void OnEnable()
 {
     m_GenericPresetLibraryInspector             = new GenericPresetLibraryInspector <GradientPresetLibrary>(target, "Gradient Preset Library", OnEditButtonClicked);
     m_GenericPresetLibraryInspector.presetSize  = new Vector2(72, 16);
     m_GenericPresetLibraryInspector.lineSpacing = 4f;
 }
 public void OnEnable()
 {
     this.m_GenericPresetLibraryInspector             = new GenericPresetLibraryInspector <DoubleCurvePresetLibrary>(this.target, this.GetHeader(AssetDatabase.GetAssetPath(this.target.GetInstanceID())), (System.Action <string>)null);
     this.m_GenericPresetLibraryInspector.presetSize  = new Vector2(72f, 20f);
     this.m_GenericPresetLibraryInspector.lineSpacing = 5f;
 }
示例#10
0
 public void OnEnable()
 {
     this.m_GenericPresetLibraryInspector             = new GenericPresetLibraryInspector <DoubleCurvePresetLibrary>(base.target, this.GetHeader(), null);
     this.m_GenericPresetLibraryInspector.presetSize  = new Vector2(72f, 20f);
     this.m_GenericPresetLibraryInspector.lineSpacing = 5f;
 }
示例#11
0
 public void OnEnable()
 {
     m_GenericPresetLibraryInspector = new GenericPresetLibraryInspector <ColorPresetLibrary>(target, "Color Preset Library", OnEditButtonClicked);
     m_GenericPresetLibraryInspector.useOnePixelOverlappedGrid = true;
     m_GenericPresetLibraryInspector.maxShowNumPresets         = 2000; // does not use a preview cache so show many
 }