public void OnEnable() { string assetPath = AssetDatabase.GetAssetPath(this.target.GetInstanceID()); this.m_GenericPresetLibraryInspector = new GenericPresetLibraryInspector<DoubleCurvePresetLibrary>(this.target, this.GetHeader(assetPath), null); this.m_GenericPresetLibraryInspector.presetSize = new Vector2(72f, 20f); this.m_GenericPresetLibraryInspector.lineSpacing = 5f; }
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() { this.m_GenericPresetLibraryInspector = new GenericPresetLibraryInspector<ColorPresetLibrary>(this.target, "Color Preset Library", new System.Action<string>(this.OnEditButtonClicked)); this.m_GenericPresetLibraryInspector.useOnePixelOverlappedGrid = true; this.m_GenericPresetLibraryInspector.maxShowNumPresets = 2000; }
public void OnEnable() { this.m_GenericPresetLibraryInspector = new GenericPresetLibraryInspector<GradientPresetLibrary>(this.target, "Gradient Preset Library", new Action<string>(this.OnEditButtonClicked)); this.m_GenericPresetLibraryInspector.presetSize = new Vector2(72f, 16f); this.m_GenericPresetLibraryInspector.lineSpacing = 4f; }