Class CharDataState
- Namespace
- TMPEffects.CharacterData
- Assembly
- TMPEffects.dll
Utility class that stores a CharData and modifications to it, allowing you to make multiple modifications iteratively and to apply at once.
Used in TMPAnimator to apply animations.
public class CharDataState : ICharDataState
- Inheritance
-
CharDataState
- Implements
- Inherited Members
Fields
cData
public CharData cData
Field Value
context
public AnimatorContext context
Field Value
Properties
BL
The position of the bottomleft vertex.
public Vector3 BL { get; set; }
Property Value
- Vector3
BLMax
The maximum position modification of the bottomleft vertex.
This is used in calculating the scaling of all vertex position modifications in CalculateVertexPositions(); you can most likely ignore this.
public Vector3 BLMax { get; set; }
Property Value
- Vector3
BLMin
The minimum position modification of the bottomleft vertex.
This is used in calculating the scaling of all vertex position modifications in CalculateVertexPositions(); you can most likely ignore this.
public Vector3 BLMin { get; set; }
Property Value
- Vector3
BL_Color
The color value of the bottomleft vertex.
public Color32 BL_Color { get; }
Property Value
- Color32
BL_Result
Contains the calculated position of the bottomleft vertex after calling CalculateVertexPositions().
public Vector3 BL_Result { get; set; }
Property Value
- Vector3
BL_UV
The UV value of the bottomleft vertex.
public Vector2 BL_UV { get; set; }
Property Value
- Vector2
BL_UV2
The UV2 value of the bottomleft vertex.
public Vector2 BL_UV2 { get; set; }
Property Value
- Vector2
BR
The position of the bottomright vertex.
public Vector3 BR { get; set; }
Property Value
- Vector3
BRMax
The maximum position modification of the bottomright vertex.
This is used in calculating the scaling of all vertex position modifications in CalculateVertexPositions(); you can most likely ignore this.
public Vector3 BRMax { get; set; }
Property Value
- Vector3
BRMin
The minimum position modification of the bottomleft vertex.
This is used in calculating the scaling of all vertex position modifications in CalculateVertexPositions(); you can most likely ignore this.
public Vector3 BRMin { get; set; }
Property Value
- Vector3
BR_Color
The color value of the bottomright vertex.
public Color32 BR_Color { get; }
Property Value
- Color32
BR_Result
Contains the calculated position of the bottomright vertex after calling CalculateVertexPositions().
public Vector3 BR_Result { get; set; }
Property Value
- Vector3
BR_UV
The UV value of the bottomright vertex.
public Vector2 BR_UV { get; set; }
Property Value
- Vector2
BR_UV2
The UV2 value of the bottomright vertex.
public Vector2 BR_UV2 { get; set; }
Property Value
- Vector2
Rotations
All rotations and the pivot they will be applied around.
public IEnumerable<(Quaternion, Vector3)> Rotations { get; }
Property Value
- IEnumerable<(Quaternion, Vector3)>
TL
The position of the topleft vertex.
public Vector3 TL { get; set; }
Property Value
- Vector3
TLMax
The maximum position modification of the topleft vertex.
This is used in calculating the scaling of all vertex position modifications in CalculateVertexPositions(); you can most likely ignore this.
public Vector3 TLMax { get; set; }
Property Value
- Vector3
TLMin
The minimum position modification of the topleft vertex.
This is used in calculating the scaling of all vertex position modifications in CalculateVertexPositions(); you can most likely ignore this.
public Vector3 TLMin { get; set; }
Property Value
- Vector3
TL_Color
The color value of the topleft vertex.
public Color32 TL_Color { get; }
Property Value
- Color32
TL_Result
Contains the calculated position of the topleft vertex after calling CalculateVertexPositions().
public Vector3 TL_Result { get; set; }
Property Value
- Vector3
TL_UV
The UV value of the topleft vertex.
public Vector2 TL_UV { get; set; }
Property Value
- Vector2
TL_UV2
The UV2 value of the topleft vertex.
public Vector2 TL_UV2 { get; set; }
Property Value
- Vector2
TR
The position of the topright vertex.
public Vector3 TR { get; set; }
Property Value
- Vector3
TRMax
The maximum position modification of the topright vertex.
This is used in calculating the scaling of all vertex position modifications in CalculateVertexPositions(); you can most likely ignore this.
public Vector3 TRMax { get; set; }
Property Value
- Vector3
TRMin
The minimum position modification of the topright vertex.
This is used in calculating the scaling of all vertex position modifications in CalculateVertexPositions(); you can most likely ignore this.
public Vector3 TRMin { get; set; }
Property Value
- Vector3
TR_Color
The color value of the topright vertex.
public Color32 TR_Color { get; }
Property Value
- Color32
TR_Result
Contains the calculated position of the topright vertex after calling CalculateVertexPositions().
public Vector3 TR_Result { get; set; }
Property Value
- Vector3
TR_UV
The UV value of the topright vertex.
public Vector2 TR_UV { get; set; }
Property Value
- Vector2
TR_UV2
The UV2 value of the topright vertex.
public Vector2 TR_UV2 { get; set; }
Property Value
- Vector2
positionDelta
The accumulated position delta of all modifications.
public Vector3 positionDelta { get; set; }
Property Value
- Vector3
scaleDelta
The accumulated scale delta of all modifications.
public Matrix4x4 scaleDelta { get; set; }
Property Value
- Matrix4x4
Methods
CalculateVertexPositions()
Calculate the vertex positions, applying all rotations, transformations and scale operations.
Will set BL_Result, TL_Result, TR_Result and BR_Result.
public void CalculateVertexPositions()
Reset(AnimatorContext, CharData)
public void Reset(AnimatorContext context, CharData cData)
Parameters
context
AnimatorContextcData
CharData
UpdateVertexOffsets()
public void UpdateVertexOffsets()