Class TMP_Asset
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.
Inherited Members
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
[Serializable]
public abstract class TMP_Asset : ScriptableObject
Properties
entityId
EntityId of the TMP Asset
Declaration
public EntityId entityId { get; }
Property Value
| Type | Description |
|---|---|
| EntityId |
faceInfo
Information about the face of the asset.
Declaration
public FaceInfo faceInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| FaceInfo |
hashCode
HashCode based on the name of the asset.
Declaration
public int hashCode { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
instanceID
Instance ID of the TMP Asset
Declaration
[Obsolete("instanceID is obsolete, use entityId instead. This will be removed in a future version.", false)]
public int instanceID { get; }
Property Value
| Type | Description |
|---|---|
| int |
material
The material used by this asset.
Declaration
public Material material { get; set; }
Property Value
| Type | Description |
|---|---|
| Material |
materialHashCode
HashCode based on the name of the material assigned to this asset.
Declaration
public int materialHashCode { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
version
The version of the text asset class. Version 1.1.0 introduces new data structure to be compatible with new font asset structure.
Declaration
public string version { get; }
Property Value
| Type | Description |
|---|---|
| string |