Skip to content

TextStudioCageStyle

ClassTextStudioTextStudio
public sealed class TextStudioCageStyle : ScriptableObject

Reusable normalized bicubic deformation field. Coordinates are relative to stable source-text bounds.

public void SetPreset(TextStudioCagePreset preset, float amount = 0.2)

Selects a preset without changing the stored custom grid.

Parameters

Name Type
preset TextStudio.TextStudioCagePreset
amount System.Single
public Vector2 GetControlPoint(int column, int row)

Reads a control point from the current rendered field, indexed by column and row from the lower left.

Parameters

Name Type
column System.Int32
row System.Int32

Returns

UnityEngine.Vector2

public void MakeCustom()

Converts the selected preset to an independent custom grid without changing its shape.

public void SetControlPoint(int column, int row, Vector2 value)

Edits one finite custom point, converting the current preset first when necessary.

Parameters

Name Type
column System.Int32
row System.Int32
value UnityEngine.Vector2

public TextStudioCageStyle()

public TextStudioCagePreset Preset { get; }

Returns

TextStudio.TextStudioCagePreset

public float Amount { get; }

Returns

System.Single

public event Action Changed

Raised when the authored field changes, independently of text layout or animation time.

Returns

System.Action