Skip to content

TextStudioCurveDefinition

StructTextStudioTextStudio
public struct TextStudioCurveDefinition : ITextStudioCurve

Serializable curve shape shared by inline settings and reusable profiles.

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

public float Evaluate(float t)

Evaluate the curve at normalized input t in [0, 1].

Parameters

Name Type
t System.Single

Returns

System.Single

public TextStudioCurveDefinition Copy()

Returns an independent curve definition with a copied custom animation curve.

Returns

TextStudio.TextStudioCurveDefinition

public CurveType CurveType { get; }

Returns

TextStudio.CurveType

public AnimationCurve CustomCurve { get; }

Returns

UnityEngine.AnimationCurve