Skip to content

TextStudio3DContourAsset

ClassTextStudio.ThreeDTextStudio.3D
public sealed class TextStudio3DContourAsset : TextStudio3DContourSourceAsset, ISerializationCallbackReceiver

Reusable serialized 2D contour data for logos, symbols, and program operands.

public override TextStudio3DContourValidationReport Validate()

Returns the validation report for the current serialized contour snapshot.

Returns

TextStudio.ThreeD.TextStudio3DContourValidationReport

public override TextStudio3DContourSet CreateContour()

Read the asset on the main thread, then retain its immutable snapshot for workers. Retained snapshots remain valid after the asset changes.

Returns

TextStudio.ThreeD.TextStudio3DContourSet

TrySetContour(TextStudio3DContourSet, out TextStudio3DContourValidationReport)

Section titled “TrySetContour(TextStudio3DContourSet, out TextStudio3DContourValidationReport)”
public bool TrySetContour(TextStudio3DContourSet contour, out TextStudio3DContourValidationReport report)

Stores a validated immutable contour. Invalid input never replaces the existing payload.

Parameters

Name Type
contour TextStudio.ThreeD.TextStudio3DContourSet
report TextStudio.ThreeD.TextStudio3DContourValidationReport

Returns

System.Boolean

public void OnBeforeSerialize()

Preserves the serialized payload without changing the cached contour snapshot.

public void OnAfterDeserialize()

Invalidates the cached contour snapshot so the deserialized payload is read on demand.

public TextStudio3DContourAsset()