Skip to content

TextStudio3DNamedSocket

StructTextStudio.ThreeDTextStudio.3D
public struct TextStudio3DNamedSocket

A 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.

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

public string Name { get; set; }

Returns

System.String

public TextStudio3DSocketKind Kind { get; set; }

Returns

TextStudio.ThreeD.TextStudio3DSocketKind

public TextStudio3DAttachmentOrientation Orientation { get; set; }

Returns

TextStudio.ThreeD.TextStudio3DAttachmentOrientation

public ContourTube3DSurface Surface { get; set; }

Returns

TextStudio.ThreeD.ContourTube3DSurface

public int ContourLoopIndex { get; set; }

Returns

System.Int32

public float ContourFraction { get; set; }

Returns

System.Single

public Vector3 Offset { get; set; }

Returns

UnityEngine.Vector3

public Vector3 EulerRotation { get; set; }

Returns

UnityEngine.Vector3