Skip to content

TextStudioCurveReference

ClassTextStudioTextStudio
public sealed class TextStudioCurveReference : ITextStudioCurve

One independently owned inline shape or a link to a reusable curve profile.

public void SetInline(in TextStudioCurveDefinition definition)

Copies a curve definition into this reference, removes its profile link, and advances the local revision.

Parameters

Name Type
definition TextStudio.TextStudioCurveDefinition
public void Link(TextStudioCurveProfile profile)

Links a non-null shared curve profile and advances the local revision.

Parameters

Name Type
profile TextStudio.TextStudioCurveProfile
public void MakeLocal()

Copies the linked profile’s definition into local settings and removes the profile link.

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 TextStudioCurveReference()

public bool IsLinked { get; }

Returns

System.Boolean

public TextStudioCurveProfile Profile { get; }

Returns

TextStudio.TextStudioCurveProfile

public uint Revision { get; }

Returns

System.UInt32

public TextStudioCurveDefinition Definition { get; }

Returns

TextStudio.TextStudioCurveDefinition