Class TMP_SelectionCaret
Important
This package is deprecated. From Unity 2023.2, TextMesh Pro is part of the Unity UI (uGUI) package. For current documentation, refer to TextMesh Pro in the Unity UI package.
A simple component that can be added to a newly created object where inheriting from MaskableGraphic is needed.
Inheritance
Object
Component
Behaviour
MonoBehaviour
UIBehaviour
Graphic
MaskableGraphic
TMP_SelectionCaret
Implements
ICanvasElement
IClippable
IMaskable
IMaterialModifier
Inherited Members
MaskableGraphic.m_ShouldRecalculateStencil
MaskableGraphic.m_MaskMaterial
MaskableGraphic.onCullStateChanged
MaskableGraphic.maskable
MaskableGraphic.isMaskingGraphic
MaskableGraphic.m_StencilValue
MaskableGraphic.GetModifiedMaterial(Material)
MaskableGraphic.SetClipSoftness(Vector2)
MaskableGraphic.OnEnable()
MaskableGraphic.OnDisable()
MaskableGraphic.OnValidate()
MaskableGraphic.OnTransformParentChanged()
MaskableGraphic.OnCanvasHierarchyChanged()
MaskableGraphic.RecalculateClipping()
MaskableGraphic.RecalculateMasking()
MaskableGraphic.Raycast(Vector2, Camera)
Graphic.s_DefaultUI
Graphic.s_WhiteTexture
Graphic.defaultGraphicMaterial
Graphic.m_Material
Graphic.m_SkipLayoutUpdate
Graphic.m_SkipMaterialUpdate
Graphic.color
Graphic.raycastTarget
Graphic.raycastPadding
Graphic.m_OnDirtyLayoutCallback
Graphic.m_OnDirtyVertsCallback
Graphic.m_OnDirtyMaterialCallback
Graphic.s_Mesh
Graphic.m_CachedMesh
Graphic.m_CachedUvs
Graphic.useLegacyMeshGeneration
Graphic.SetAllDirty()
Graphic.SetLayoutDirty()
Graphic.SetVerticesDirty()
Graphic.SetMaterialDirty()
Graphic.SetRaycastDirty()
Graphic.OnRectTransformDimensionsChange()
Graphic.OnBeforeTransformParentChanged()
Graphic.depth
Graphic.rectTransform
Graphic.canvas
Graphic.canvasRenderer
Graphic.defaultMaterial
Graphic.material
Graphic.materialForRendering
Graphic.mainTexture
Graphic.OnDestroy()
Graphic.OnCullingChanged()
Graphic.Rebuild(CanvasUpdate)
Graphic.LayoutComplete()
Graphic.GraphicUpdateComplete()
Graphic.UpdateMaterial()
Graphic.workerMesh
Graphic.OnPopulateMesh(Mesh)
Graphic.OnPopulateMesh(VertexHelper)
Graphic.OnRebuildRequested()
Graphic.Reset()
Graphic.OnDidApplyAnimationProperties()
Graphic.SetNativeSize()
Graphic.PixelAdjustPoint(Vector2)
Graphic.GetPixelAdjustedRect()
Graphic.RegisterDirtyLayoutCallback(UnityAction)
Graphic.UnregisterDirtyLayoutCallback(UnityAction)
Graphic.RegisterDirtyVerticesCallback(UnityAction)
Graphic.UnregisterDirtyVerticesCallback(UnityAction)
Graphic.RegisterDirtyMaterialCallback(UnityAction)
Graphic.UnregisterDirtyMaterialCallback(UnityAction)
UIBehaviour.Awake()
UIBehaviour.Start()
UIBehaviour.IsActive()
UIBehaviour.OnCanvasGroupChanged()
UIBehaviour.IsDestroyed()
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.GetInstanceID()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[RequireComponent(typeof(CanvasRenderer))]
public class TMP_SelectionCaret : MaskableGraphic, ICanvasElement, IClippable, IMaskable, IMaterialModifier
Methods
Cull(Rect, bool)
Override to Cull function of MaskableGraphic to prevent Culling.
Declaration
public override void Cull(Rect clipRect, bool validRect)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | clipRect | |
| bool | validRect |
Overrides
UpdateGeometry()
Call to update the geometry of the Graphic onto the CanvasRenderer.
Declaration
protected override void UpdateGeometry()
Overrides
UnityEngine.UI.Graphic.UpdateGeometry()
Implements
UnityEngine.UI.ICanvasElement
UnityEngine.UI.IClippable
UnityEngine.UI.IMaskable
UnityEngine.UI.IMaterialModifier