TextStudio3DContourAsset
public sealed class TextStudio3DContourAsset : TextStudio3DContourSourceAsset, ISerializationCallbackReceiverReusable serialized 2D contour data for logos, symbols, and program operands.
Methods
Section titled “Methods”
Validate()
Section titled “Validate()”public override TextStudio3DContourValidationReport Validate()Returns the validation report for the current serialized contour snapshot.
Returns
TextStudio.ThreeD.TextStudio3DContourValidationReport
CreateContour()
Section titled “CreateContour()”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
OnBeforeSerialize()
Section titled “OnBeforeSerialize()”public void OnBeforeSerialize()Preserves the serialized payload without changing the cached contour snapshot.
OnAfterDeserialize()
Section titled “OnAfterDeserialize()”public void OnAfterDeserialize()Invalidates the cached contour snapshot so the deserialized payload is read on demand.
Constructors
Section titled “Constructors”
TextStudio3DContourAsset()
Section titled “TextStudio3DContourAsset()”public TextStudio3DContourAsset()