docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_BaseEditorPanel

    Inheritance
    Object
    Object
    ScriptableObject
    Editor
    TMP_BaseEditorPanel
    TMP_EditorPanel
    TMP_EditorPanelUI
    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

    k_UiStateLabel

    Declaration
    protected static string[] k_UiStateLabel
    Field Value
    Type Description
    String[]

    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_HorizontalAlignmentProp

    Declaration
    protected SerializedProperty m_HorizontalAlignmentProp
    Field Value
    Type Description
    SerializedProperty

    m_HorizontalMappingProp

    Declaration
    protected SerializedProperty m_HorizontalMappingProp
    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_IsTextObjectScaleStaticProp

    Declaration
    protected SerializedProperty m_IsTextObjectScaleStaticProp
    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_MaterialPresetIndexLookup

    Declaration
    protected Dictionary<int, int> m_MaterialPresetIndexLookup
    Field Value
    Type Description
    Dictionary<Int32, Int32>

    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_ParentLinkedTextComponentProp

    Declaration
    protected SerializedProperty m_ParentLinkedTextComponentProp
    Field Value
    Type Description
    SerializedProperty

    m_PreviousLinkedTextComponent

    Declaration
    protected TMP_Text m_PreviousLinkedTextComponent
    Field Value
    Type Description
    TMP_Text

    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_StyleNames

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

    m_Styles

    Declaration
    protected List<TMP_Style> m_Styles
    Field Value
    Type Description
    List<TMP_Style>

    m_StyleSelectionIndex

    Declaration
    protected int m_StyleSelectionIndex
    Field Value
    Type Description
    Int32

    m_StyleSheetAssetProp

    Declaration
    protected SerializedProperty m_StyleSheetAssetProp
    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_TextStyleHashCodeProp

    Declaration
    protected SerializedProperty m_TextStyleHashCodeProp
    Field Value
    Type Description
    SerializedProperty

    m_TextStyleIndexLookup

    Declaration
    protected Dictionary<int, int> m_TextStyleIndexLookup
    Field Value
    Type Description
    Dictionary<Int32, Int32>

    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_VerticalAlignmentProp

    Declaration
    protected SerializedProperty m_VerticalAlignmentProp
    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()

    DrawIsTextObjectScaleStatic()

    Declaration
    protected void DrawIsTextObjectScaleStatic()

    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()

    DrawSpriteAsset()

    Declaration
    protected void DrawSpriteAsset()

    DrawStyleSheet()

    Declaration
    protected void DrawStyleSheet()

    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[]

    GetStyleNames()

    Declaration
    protected GUIContent[] GetStyleNames()
    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()
    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