SurfaceMapping3DSpec
public struct SurfaceMapping3DSpecProjection and transform policy for generated surfaces.
Fields
Section titled “Fields”
[Tooltip("Texture projection. Generated preserves provider UVs; the other modes create stable glyph, text, depth, triplanar, or cylindrical coordinates.")]public SurfaceMapping3DMode modeReturns
TextStudio.ThreeD.SurfaceMapping3DMode
[Tooltip("Texture tiling applied after projection. Values must be finite and greater than zero.")]public Vector2 scaleReturns
UnityEngine.Vector2
rotation
Section titled “rotation”[Tooltip("Clockwise texture rotation in degrees around the authored anchor.")]public float rotationReturns
System.Single
offset
Section titled “offset”[Tooltip("Texture-coordinate translation applied after scale and rotation.")]public Vector2 offsetReturns
UnityEngine.Vector2
anchor
Section titled “anchor”[Tooltip("Normalized pivot for scale and rotation. (0,0) is the projected origin and (0.5,0.5) is its center.")]public Vector2 anchorReturns
UnityEngine.Vector2
consistentWorldScale
Section titled “consistentWorldScale”[Tooltip("Keep physical texture density instead of normalizing each glyph or text rectangle. World triplanar mapping always uses world position.")]public bool consistentWorldScaleReturns
System.Boolean
Properties
Section titled “Properties”
Default
Section titled “Default”public static SurfaceMapping3DSpec Default { get; }Returns
TextStudio.ThreeD.SurfaceMapping3DSpec