TextStudio3DNamedSocket
public struct TextStudio3DNamedSocketA reusable named socket definition. The semantic anchor is resolved from the current rendered glyph, then the offset and Euler rotation are applied in that socket’s frame.
Methods
Section titled “Methods”
Create(string, TextStudio3DSocketKind, Vector3, Vector3)
Section titled “Create(string, TextStudio3DSocketKind, Vector3, Vector3)”public static TextStudio3DNamedSocket Create(string name, TextStudio3DSocketKind kind, Vector3 offset = default, Vector3 eulerRotation = default)Creates a named semantic socket with a world-unit offset and optional orientation policy.
Parameters
| Name | Type |
|---|---|
name |
System.String |
kind |
TextStudio.ThreeD.TextStudio3DSocketKind |
offset |
UnityEngine.Vector3 |
eulerRotation |
UnityEngine.Vector3 |
Returns
TextStudio.ThreeD.TextStudio3DNamedSocket
CreateContour(string, ContourTube3DSurface, int, float, Vector3, Vector3)
Section titled “CreateContour(string, ContourTube3DSurface, int, float, Vector3, Vector3)”public static TextStudio3DNamedSocket CreateContour(string name, ContourTube3DSurface surface, int loopIndex, float fraction, Vector3 offset = default, Vector3 eulerRotation = default)Creates a named socket at a normalized distance around a selected front or back contour boundary.
Parameters
| Name | Type |
|---|---|
name |
System.String |
surface |
TextStudio.ThreeD.ContourTube3DSurface |
loopIndex |
System.Int32 |
fraction |
System.Single |
offset |
UnityEngine.Vector3 |
eulerRotation |
UnityEngine.Vector3 |
Returns
TextStudio.ThreeD.TextStudio3DNamedSocket
Properties
Section titled “Properties”
public string Name { get; set; }Returns
System.String
public TextStudio3DSocketKind Kind { get; set; }Returns
TextStudio.ThreeD.TextStudio3DSocketKind
Orientation
Section titled “Orientation”public TextStudio3DAttachmentOrientation Orientation { get; set; }Returns
TextStudio.ThreeD.TextStudio3DAttachmentOrientation
Surface
Section titled “Surface”public ContourTube3DSurface Surface { get; set; }Returns
TextStudio.ThreeD.ContourTube3DSurface
ContourLoopIndex
Section titled “ContourLoopIndex”public int ContourLoopIndex { get; set; }Returns
System.Int32
ContourFraction
Section titled “ContourFraction”public float ContourFraction { get; set; }Returns
System.Single
Offset
Section titled “Offset”public Vector3 Offset { get; set; }Returns
UnityEngine.Vector3
EulerRotation
Section titled “EulerRotation”public Vector3 EulerRotation { get; set; }Returns
UnityEngine.Vector3