Skip to content

PlacementOrientation

ClassTextStudioTextStudio
public class PlacementOrientation

Placement-agnostic orientation override. Placement Default preserves the strategy-authored rotation while the other policies reinterpret its frame.

[Tooltip("How glyphs orient after placement. Placement Default preserves the strategy's natural facing.")]
public TextStudioPlacementOrientation orientation

Returns

TextStudio.TextStudioPlacementOrientation

[Tooltip("Additional local Euler rotation in degrees, applied after the selected orientation.")]
public Vector3 fineRotation

Returns

UnityEngine.Vector3

public Quaternion Apply(in GlyphPlacement placement)

Resolves the glyph rotation for the selected orientation policy, then applies TextStudio.PlacementOrientation.fineRotation as a local Euler adjustment in degrees.

Parameters

Name Type
placement TextStudio.GlyphPlacement

Returns

UnityEngine.Quaternion

public PlacementOrientation()

public bool HasEffect { get; }

Returns

System.Boolean