TextStudioCageStyle
public sealed class TextStudioCageStyle : ScriptableObjectReusable normalized bicubic deformation field. Coordinates are relative to stable source-text bounds.
Methods
Section titled “Methods”
SetPreset(TextStudioCagePreset, float)
Section titled “SetPreset(TextStudioCagePreset, float)”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 |
GetControlPoint(int, int)
Section titled “GetControlPoint(int, int)”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
MakeCustom()
Section titled “MakeCustom()”public void MakeCustom()Converts the selected preset to an independent custom grid without changing its shape.
SetControlPoint(int, int, Vector2)
Section titled “SetControlPoint(int, int, Vector2)”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 |
Constructors
Section titled “Constructors”
TextStudioCageStyle()
Section titled “TextStudioCageStyle()”public TextStudioCageStyle()Properties
Section titled “Properties”
Preset
Section titled “Preset”public TextStudioCagePreset Preset { get; }Returns
TextStudio.TextStudioCagePreset
Amount
Section titled “Amount”public float Amount { get; }Returns
System.Single
Events
Section titled “Events”
Changed
Section titled “Changed”public event Action ChangedRaised when the authored field changes, independently of text layout or animation time.
Returns
System.Action