Skip to content

TextStudio3DAttachmentSnapshot

StructTextStudio.ThreeDTextStudio.3D
public readonly struct TextStudio3DAttachmentSnapshot

Short-lived immutable view valid until its subscription revision changes.

TryGetSample(int, out TextStudio3DAttachmentSample)

Section titled “TryGetSample(int, out TextStudio3DAttachmentSample)”
public bool TryGetSample(int index, out TextStudio3DAttachmentSample sample)

Reads a current sample, returning false for an expired snapshot or an invalid index.

Parameters

Name Type
index System.Int32
sample TextStudio.ThreeD.TextStudio3DAttachmentSample

Returns

System.Boolean

CopyTo(TextStudio3DAttachmentSample[], int)

Section titled “CopyTo(TextStudio3DAttachmentSample[], int)”
public int CopyTo(TextStudio3DAttachmentSample[] destination, int destinationIndex = 0)

Copies current samples into a caller-owned buffer and returns the number written; expired snapshots return zero.

Parameters

Name Type
destination TextStudio.ThreeD.TextStudio3DAttachmentSample[]
destinationIndex System.Int32

Returns

System.Int32

public int Revision { get; }

Returns

System.Int32

public uint Generation { get; }

Returns

System.UInt32

public int Count { get; }

Returns

System.Int32

public int GlyphCount { get; }

Returns

System.Int32

public Bounds LocalBounds { get; }

Returns

UnityEngine.Bounds

public TextStudio3DAttachmentRequest SatisfiedRequest { get; }

Returns

TextStudio.ThreeD.TextStudio3DAttachmentRequest

public bool IsValid { get; }

Returns

System.Boolean