Skip to content

SurfaceMapping3DSpec

StructTextStudio.ThreeDTextStudio.3D
public struct SurfaceMapping3DSpec

Projection and transform policy for generated surfaces.

[Tooltip("Texture projection. Generated preserves provider UVs; the other modes create stable glyph, text, depth, triplanar, or cylindrical coordinates.")]
public SurfaceMapping3DMode mode

Returns

TextStudio.ThreeD.SurfaceMapping3DMode

[Tooltip("Texture tiling applied after projection. Values must be finite and greater than zero.")]
public Vector2 scale

Returns

UnityEngine.Vector2

[Tooltip("Clockwise texture rotation in degrees around the authored anchor.")]
public float rotation

Returns

System.Single

[Tooltip("Texture-coordinate translation applied after scale and rotation.")]
public Vector2 offset

Returns

UnityEngine.Vector2

[Tooltip("Normalized pivot for scale and rotation. (0,0) is the projected origin and (0.5,0.5) is its center.")]
public Vector2 anchor

Returns

UnityEngine.Vector2

[Tooltip("Keep physical texture density instead of normalizing each glyph or text rectangle. World triplanar mapping always uses world position.")]
public bool consistentWorldScale

Returns

System.Boolean

public static SurfaceMapping3DSpec Default { get; }

Returns

TextStudio.ThreeD.SurfaceMapping3DSpec