Skip to content

TextStudioGlyphStateWriter

StructTextStudioTextStudio
public readonly struct TextStudioGlyphStateWriter

Allocation-free writer scoped to one registered authority lease.

TryGetState(int, out TextStudioGlyphInstanceState)

Section titled “TryGetState(int, out TextStudioGlyphInstanceState)”
public bool TryGetState(int glyphIndex, out TextStudioGlyphInstanceState state)

Returns the current state of an accessible glyph.

Parameters

NameType
glyphIndexSystem.Int32
stateTextStudio.TextStudioGlyphInstanceState

Returns

System.Boolean

ApplyPose(int, in TextStudioGlyphPose, float)

Section titled “ApplyPose(int, in TextStudioGlyphPose, float)”
public bool ApplyPose(int glyphIndex, in TextStudioGlyphPose pose, float weight = 1)

Blends a pose into an accessible glyph when transform authority is available.

Parameters

NameType
glyphIndexSystem.Int32
poseTextStudio.TextStudioGlyphPose
weightSystem.Single

Returns

System.Boolean

public bool SetVelocities(int glyphIndex, Vector3 velocity, Vector3 angularVelocity)

Sets linear and angular velocity for an accessible glyph when velocity authority is available.

Parameters

NameType
glyphIndexSystem.Int32
velocityUnityEngine.Vector3
angularVelocityUnityEngine.Vector3

Returns

System.Boolean

ApplyVisualResponse(int, in TextStudioGlyphVisualResponse)

Section titled “ApplyVisualResponse(int, in TextStudioGlyphVisualResponse)”
public bool ApplyVisualResponse(int glyphIndex, in TextStudioGlyphVisualResponse response)

Applies color, alpha, or scale response values to an accessible glyph.

Parameters

NameType
glyphIndexSystem.Int32
responseTextStudio.TextStudioGlyphVisualResponse

Returns

System.Boolean

public int Count { get; }

Returns

System.Int32

public TextStudioGlyphAuthorityChannels Channels { get; }

Returns

TextStudio.TextStudioGlyphAuthorityChannels