docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_BaseEditorPanel

    Inheritance
    Object
    Object
    ScriptableObject
    Editor
    TMP_BaseEditorPanel
    TMP_EditorPanel
    TMP_UiEditorPanel
    Inherited Members
    Editor.CreateEditorWithContext(Object[], Object, Type)
    Editor.CreateEditorWithContext(Object[], Object)
    Editor.CreateCachedEditorWithContext(Object, Object, Type, Editor)
    Editor.CreateCachedEditorWithContext(Object[], Object, Type, Editor)
    Editor.CreateCachedEditor(Object, Type, Editor)
    Editor.CreateCachedEditor(Object[], Type, Editor)
    Editor.CreateEditor(Object)
    Editor.CreateEditor(Object, Type)
    Editor.CreateEditor(Object[])
    Editor.CreateEditor(Object[], Type)
    Editor.DrawPropertiesExcluding(SerializedObject, String[])
    Editor.DrawDefaultInspector()
    Editor.Repaint()
    Editor.CreateInspectorGUI()
    Editor.RequiresConstantRepaint()
    Editor.DrawHeader()
    Editor.OnHeaderGUI()
    Editor.ShouldHideOpenButton()
    Editor.DrawFoldoutInspector(Object, Editor)
    Editor.HasPreviewGUI()
    Editor.GetPreviewTitle()
    Editor.RenderStaticPreview(String, Object[], Int32, Int32)
    Editor.OnPreviewGUI(Rect, GUIStyle)
    Editor.OnInteractivePreviewGUI(Rect, GUIStyle)
    Editor.OnPreviewSettings()
    Editor.GetInfoString()
    Editor.DrawPreview(Rect)
    Editor.ReloadPreviewInstances()
    Editor.UseDefaultMargins()
    Editor.Initialize(Object[])
    Editor.MoveNextTarget()
    Editor.ResetTarget()
    Editor.target
    Editor.targets
    Editor.serializedObject
    Editor.finishedDefaultHeaderGUI
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: TMPro.EditorUtilities
    Syntax
    public abstract class TMP_BaseEditorPanel : Editor, IPreviewable, IToolModeOwner

    Fields

    k_ExtraSettingsLabel

    Declaration
    protected static readonly GUIContent k_ExtraSettingsLabel
    Field Value
    Type Description
    GUIContent

    m_AutoSizingProp

    Declaration
    protected SerializedProperty m_AutoSizingProp
    Field Value
    Type Description
    SerializedProperty

    m_CharacterSpacingProp

    Declaration
    protected SerializedProperty m_CharacterSpacingProp
    Field Value
    Type Description
    SerializedProperty

    m_CharWidthMaxAdjProp

    Declaration
    protected SerializedProperty m_CharWidthMaxAdjProp
    Field Value
    Type Description
    SerializedProperty

    m_CheckPaddingRequiredProp

    Declaration
    protected SerializedProperty m_CheckPaddingRequiredProp
    Field Value
    Type Description
    SerializedProperty

    m_ColorModeProp

    Declaration
    protected SerializedProperty m_ColorModeProp
    Field Value
    Type Description
    SerializedProperty

    m_EnableEscapeCharacterParsingProp

    Declaration
    protected SerializedProperty m_EnableEscapeCharacterParsingProp
    Field Value
    Type Description
    SerializedProperty

    m_EnableExtraPaddingProp

    Declaration
    protected SerializedProperty m_EnableExtraPaddingProp
    Field Value
    Type Description
    SerializedProperty

    m_EnableKerningProp

    Declaration
    protected SerializedProperty m_EnableKerningProp
    Field Value
    Type Description
    SerializedProperty

    m_EnableVertexGradientProp

    Declaration
    protected SerializedProperty m_EnableVertexGradientProp
    Field Value
    Type Description
    SerializedProperty

    m_EnableWordWrappingProp

    Declaration
    protected SerializedProperty m_EnableWordWrappingProp
    Field Value
    Type Description
    SerializedProperty

    m_FontAssetProp

    Declaration
    protected SerializedProperty m_FontAssetProp
    Field Value
    Type Description
    SerializedProperty

    m_FontColorGradientPresetProp

    Declaration
    protected SerializedProperty m_FontColorGradientPresetProp
    Field Value
    Type Description
    SerializedProperty

    m_FontColorGradientProp

    Declaration
    protected SerializedProperty m_FontColorGradientProp
    Field Value
    Type Description
    SerializedProperty

    m_FontColorProp

    Declaration
    protected SerializedProperty m_FontColorProp
    Field Value
    Type Description
    SerializedProperty

    m_FontSharedMaterialProp

    Declaration
    protected SerializedProperty m_FontSharedMaterialProp
    Field Value
    Type Description
    SerializedProperty

    m_FontSizeBaseProp

    Declaration
    protected SerializedProperty m_FontSizeBaseProp
    Field Value
    Type Description
    SerializedProperty

    m_FontSizeMaxProp

    Declaration
    protected SerializedProperty m_FontSizeMaxProp
    Field Value
    Type Description
    SerializedProperty

    m_FontSizeMinProp

    Declaration
    protected SerializedProperty m_FontSizeMinProp
    Field Value
    Type Description
    SerializedProperty

    m_FontSizeProp

    Declaration
    protected SerializedProperty m_FontSizeProp
    Field Value
    Type Description
    SerializedProperty

    m_FontStyleProp

    Declaration
    protected SerializedProperty m_FontStyleProp
    Field Value
    Type Description
    SerializedProperty

    m_GeometrySortingOrderProp

    Declaration
    protected SerializedProperty m_GeometrySortingOrderProp
    Field Value
    Type Description
    SerializedProperty

    m_HandlePoints

    Declaration
    protected Vector3[] m_HandlePoints
    Field Value
    Type Description
    Vector3[]

    m_HasFontAssetChangedProp

    Declaration
    protected SerializedProperty m_HasFontAssetChangedProp
    Field Value
    Type Description
    SerializedProperty

    m_HavePropertiesChanged

    Declaration
    protected bool m_HavePropertiesChanged
    Field Value
    Type Description
    Boolean

    m_HorizontalMappingProp

    Declaration
    protected SerializedProperty m_HorizontalMappingProp
    Field Value
    Type Description
    SerializedProperty

    m_IsLinkedTextComponentProp

    Declaration
    protected SerializedProperty m_IsLinkedTextComponentProp
    Field Value
    Type Description
    SerializedProperty

    m_IsPresetListDirty

    Declaration
    protected bool m_IsPresetListDirty
    Field Value
    Type Description
    Boolean

    m_IsRichTextProp

    Declaration
    protected SerializedProperty m_IsRichTextProp
    Field Value
    Type Description
    SerializedProperty

    m_IsRightToLeftProp

    Declaration
    protected SerializedProperty m_IsRightToLeftProp
    Field Value
    Type Description
    SerializedProperty

    m_LineSpacingMaxProp

    Declaration
    protected SerializedProperty m_LineSpacingMaxProp
    Field Value
    Type Description
    SerializedProperty

    m_LineSpacingProp

    Declaration
    protected SerializedProperty m_LineSpacingProp
    Field Value
    Type Description
    SerializedProperty

    m_LinkedTextComponentProp

    Declaration
    protected SerializedProperty m_LinkedTextComponentProp
    Field Value
    Type Description
    SerializedProperty

    m_MarginProp

    Declaration
    protected SerializedProperty m_MarginProp
    Field Value
    Type Description
    SerializedProperty

    m_MaterialPresetNames

    Declaration
    protected GUIContent[] m_MaterialPresetNames
    Field Value
    Type Description
    GUIContent[]

    m_MaterialPresets

    Declaration
    protected Material[] m_MaterialPresets
    Field Value
    Type Description
    Material[]

    m_MaterialPresetSelectionIndex

    Declaration
    protected int m_MaterialPresetSelectionIndex
    Field Value
    Type Description
    Int32

    m_OverrideHtmlColorProp

    Declaration
    protected SerializedProperty m_OverrideHtmlColorProp
    Field Value
    Type Description
    SerializedProperty

    m_PageToDisplayProp

    Declaration
    protected SerializedProperty m_PageToDisplayProp
    Field Value
    Type Description
    SerializedProperty

    m_ParagraphSpacingProp

    Declaration
    protected SerializedProperty m_ParagraphSpacingProp
    Field Value
    Type Description
    SerializedProperty

    m_RectCorners

    Declaration
    protected Vector3[] m_RectCorners
    Field Value
    Type Description
    Vector3[]

    m_RectTransform

    Declaration
    protected RectTransform m_RectTransform
    Field Value
    Type Description
    RectTransform

    m_RtlText

    Declaration
    protected string m_RtlText
    Field Value
    Type Description
    String

    m_SpriteAssetProp

    Declaration
    protected SerializedProperty m_SpriteAssetProp
    Field Value
    Type Description
    SerializedProperty

    m_TargetMaterial

    Declaration
    protected Material m_TargetMaterial
    Field Value
    Type Description
    Material

    m_TextAlignmentProp

    Declaration
    protected SerializedProperty m_TextAlignmentProp
    Field Value
    Type Description
    SerializedProperty

    m_TextComponent

    Declaration
    protected TMP_Text m_TextComponent
    Field Value
    Type Description
    TMP_Text

    m_TextOverflowModeProp

    Declaration
    protected SerializedProperty m_TextOverflowModeProp
    Field Value
    Type Description
    SerializedProperty

    m_TextProp

    Declaration
    protected SerializedProperty m_TextProp
    Field Value
    Type Description
    SerializedProperty

    m_UseMaxVisibleDescenderProp

    Declaration
    protected SerializedProperty m_UseMaxVisibleDescenderProp
    Field Value
    Type Description
    SerializedProperty

    m_UvLineOffsetProp

    Declaration
    protected SerializedProperty m_UvLineOffsetProp
    Field Value
    Type Description
    SerializedProperty

    m_VerticalMappingProp

    Declaration
    protected SerializedProperty m_VerticalMappingProp
    Field Value
    Type Description
    SerializedProperty

    m_WordSpacingProp

    Declaration
    protected SerializedProperty m_WordSpacingProp
    Field Value
    Type Description
    SerializedProperty

    m_WordWrappingRatiosProp

    Declaration
    protected SerializedProperty m_WordWrappingRatiosProp
    Field Value
    Type Description
    SerializedProperty

    s_EventId

    Declaration
    protected static int s_EventId
    Field Value
    Type Description
    Int32

    selAlignGridA

    Declaration
    public int selAlignGridA
    Field Value
    Type Description
    Int32

    selAlignGridB

    Declaration
    public int selAlignGridB
    Field Value
    Type Description
    Int32

    Methods

    DrawExtraSettings()

    Declaration
    protected abstract void DrawExtraSettings()

    DrawGeometrySorting()

    Declaration
    protected void DrawGeometrySorting()

    DrawKerning()

    Declaration
    protected void DrawKerning()

    DrawMainSettings()

    Declaration
    protected void DrawMainSettings()

    DrawMarginProperty(SerializedProperty, GUIContent)

    Declaration
    protected void DrawMarginProperty(SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    SerializedProperty property
    GUIContent label

    DrawMargins()

    Declaration
    protected void DrawMargins()

    DrawPadding()

    Declaration
    protected void DrawPadding()

    DrawParsing()

    Declaration
    protected void DrawParsing()

    DrawPropertySlider(GUIContent, SerializedProperty)

    Declaration
    protected void DrawPropertySlider(GUIContent label, SerializedProperty property)
    Parameters
    Type Name Description
    GUIContent label
    SerializedProperty property

    DrawRichText()

    Declaration
    protected void DrawRichText()

    DrawTextInput()

    Declaration
    protected void DrawTextInput()

    DrawTextureMapping()

    Declaration
    protected void DrawTextureMapping()

    GetMaterialPresets()

    Method to retrieve the material presets that match the currently selected font asset.

    Declaration
    protected GUIContent[] GetMaterialPresets()
    Returns
    Type Description
    GUIContent[]

    IsMixSelectionTypes()

    Declaration
    protected abstract bool IsMixSelectionTypes()
    Returns
    Type Description
    Boolean

    OnDisable()

    Declaration
    protected virtual void OnDisable()

    OnEnable()

    Declaration
    protected virtual void OnEnable()

    OnInspectorGUI()

    Declaration
    public override void OnInspectorGUI()
    Overrides
    Editor.OnInspectorGUI()

    OnSceneGUI()

    Declaration
    public void OnSceneGUI()

    OnUndoRedo()

    Declaration
    protected abstract void OnUndoRedo()
    In This Article
    • Fields
      • k_ExtraSettingsLabel
      • m_AutoSizingProp
      • m_CharacterSpacingProp
      • m_CharWidthMaxAdjProp
      • m_CheckPaddingRequiredProp
      • m_ColorModeProp
      • m_EnableEscapeCharacterParsingProp
      • m_EnableExtraPaddingProp
      • m_EnableKerningProp
      • m_EnableVertexGradientProp
      • m_EnableWordWrappingProp
      • m_FontAssetProp
      • m_FontColorGradientPresetProp
      • m_FontColorGradientProp
      • m_FontColorProp
      • m_FontSharedMaterialProp
      • m_FontSizeBaseProp
      • m_FontSizeMaxProp
      • m_FontSizeMinProp
      • m_FontSizeProp
      • m_FontStyleProp
      • m_GeometrySortingOrderProp
      • m_HandlePoints
      • m_HasFontAssetChangedProp
      • m_HavePropertiesChanged
      • m_HorizontalMappingProp
      • m_IsLinkedTextComponentProp
      • m_IsPresetListDirty
      • m_IsRichTextProp
      • m_IsRightToLeftProp
      • m_LineSpacingMaxProp
      • m_LineSpacingProp
      • m_LinkedTextComponentProp
      • m_MarginProp
      • m_MaterialPresetNames
      • m_MaterialPresets
      • m_MaterialPresetSelectionIndex
      • m_OverrideHtmlColorProp
      • m_PageToDisplayProp
      • m_ParagraphSpacingProp
      • m_RectCorners
      • m_RectTransform
      • m_RtlText
      • m_SpriteAssetProp
      • m_TargetMaterial
      • m_TextAlignmentProp
      • m_TextComponent
      • m_TextOverflowModeProp
      • m_TextProp
      • m_UseMaxVisibleDescenderProp
      • m_UvLineOffsetProp
      • m_VerticalMappingProp
      • m_WordSpacingProp
      • m_WordWrappingRatiosProp
      • s_EventId
      • selAlignGridA
      • selAlignGridB
    • Methods
      • DrawExtraSettings()
      • DrawGeometrySorting()
      • DrawKerning()
      • DrawMainSettings()
      • DrawMarginProperty(SerializedProperty, GUIContent)
      • DrawMargins()
      • DrawPadding()
      • DrawParsing()
      • DrawPropertySlider(GUIContent, SerializedProperty)
      • DrawRichText()
      • DrawTextInput()
      • DrawTextureMapping()
      • GetMaterialPresets()
      • IsMixSelectionTypes()
      • OnDisable()
      • OnEnable()
      • OnInspectorGUI()
      • OnSceneGUI()
      • OnUndoRedo()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023