TextStudioCurveDefinition
public struct TextStudioCurveDefinition : ITextStudioCurveSerializable curve shape shared by inline settings and reusable profiles.
Constructors
Section titled “Constructors”
TextStudioCurveDefinition(CurveType, AnimationCurve)
Section titled “TextStudioCurveDefinition(CurveType, AnimationCurve)”public TextStudioCurveDefinition(CurveType curveType, AnimationCurve customCurve = null)Creates a curve definition and copies any supplied custom animation curve.
Parameters
| Name | Type |
|---|---|
curveType |
TextStudio.CurveType |
customCurve |
UnityEngine.AnimationCurve |
Methods
Section titled “Methods”
Evaluate(float)
Section titled “Evaluate(float)”public float Evaluate(float t)Evaluate the curve at normalized input t in [0, 1].
Parameters
| Name | Type |
|---|---|
t |
System.Single |
Returns
System.Single
Copy()
Section titled “Copy()”public TextStudioCurveDefinition Copy()Returns an independent curve definition with a copied custom animation curve.
Returns
TextStudio.TextStudioCurveDefinition
Properties
Section titled “Properties”
CurveType
Section titled “CurveType”public CurveType CurveType { get; }Returns
TextStudio.CurveType
CustomCurve
Section titled “CustomCurve”public AnimationCurve CustomCurve { get; }Returns
UnityEngine.AnimationCurve