ContourRepeat3DSpec
public struct ContourRepeat3DSpecDiscrete geometry repeated at stable physical intervals around selected cap contours.
Fields
Section titled “Fields”
enabled
Section titled “enabled”[Tooltip("Generate discrete repeated geometry around the selected cap contour.")]public bool enabledReturns
System.Boolean
provider
Section titled “provider”[Tooltip("Built-in repeat geometry, or the first readable mesh found on a prefab or its children.")]public ContourRepeat3DProvider providerReturns
TextStudio.ThreeD.ContourRepeat3DProvider
surface
Section titled “surface”[Tooltip("Cap surface or surfaces that receive the repeated geometry.")]public ContourTube3DSurface surfaceReturns
TextStudio.ThreeD.ContourTube3DSurface
orientation
Section titled “orientation”[Tooltip("Primary direction used by each repeated attachment.")]public TextStudio3DAttachmentOrientation orientationReturns
TextStudio.ThreeD.TextStudio3DAttachmentOrientation
customEulerRotation
Section titled “customEulerRotation”[Tooltip("Local Euler orientation relative to the face-normal frame when Orientation is Custom.")]public Vector3 customEulerRotationReturns
UnityEngine.Vector3
distribution
Section titled “distribution”[Tooltip("Whether repeat quantity is resolved from physical spacing, an exact per-contour count, or instances per local unit.")]public ContourRepeat3DDistribution distributionReturns
TextStudio.ThreeD.ContourRepeat3DDistribution
spacing
Section titled “spacing”[Tooltip("Physical target distance between repeat centers when Distribution is Spacing.")][Min(0)]public float spacingReturns
System.Single
instanceCount
Section titled “instanceCount”[Tooltip("Requested instances on each contour when Distribution is Count. Max Per Contour remains the hard cap.")][Min(1)]public int instanceCountReturns
System.Int32
density
Section titled “density”[Tooltip("Requested instances per local contour unit when Distribution is Density.")][Min(0)]public float densityReturns
System.Single
[Tooltip("Offset within one resolved repeat interval. Zero starts at the contour seam; one wraps to the same placement.")][Range(0, 1)]public float phaseReturns
System.Single
cornerPolicy
Section titled “cornerPolicy”[Tooltip("Uniform preserves the resolved pattern, Avoid Sharp Corners removes instances near hard turns, and Sharp Corners Only places one instance on each hard turn.")]public ContourRepeat3DCornerPolicy cornerPolicyReturns
TextStudio.ThreeD.ContourRepeat3DCornerPolicy
cornerClearance
Section titled “cornerClearance”[Tooltip("Physical clearance kept around sharp contour points when Corner Policy is Avoid Sharp Corners.")][Min(0)]public float cornerClearanceReturns
System.Single
[Tooltip("Local repeat size along the resolved right, up, and forward axes.")]public Vector3 sizeReturns
UnityEngine.Vector3
maxInstancesPerLoop
Section titled “maxInstancesPerLoop”[Tooltip("Hard per-contour cap on generated repeats, bounding geometry cost.")][Range(1, 256)]public int maxInstancesPerLoopReturns
System.Int32
includeHoles
Section titled “includeHoles”[Tooltip("Also repeat around glyph counters such as the centers of O, A, and B.")]public bool includeHolesReturns
System.Boolean
surfaceOffset
Section titled “surfaceOffset”[Tooltip("Signed clearance from the cap surface before the repeat height is applied.")]public float surfaceOffsetReturns
System.Single
avoidOverlap
Section titled “avoidOverlap”[Tooltip("Reduce or skip instances whose conservative contour footprint would overlap a neighbour.")]public bool avoidOverlapReturns
System.Boolean
avoidancePadding
Section titled “avoidancePadding”[Tooltip("Additional physical clearance added to overlap avoidance.")][Min(0)]public float avoidancePaddingReturns
System.Single
randomSeed
Section titled “randomSeed”[Tooltip("Stable seed used by position, scale, and rotation variation. It has no effect while every variation amount is zero.")]public int randomSeedReturns
System.Int32
positionVariation
Section titled “positionVariation”[Tooltip("Maximum signed fraction of one repeat interval used to jitter each position. Values stay below one half so instance order remains stable.")][Range(0, 0.49)]public float positionVariationReturns
System.Single
scaleVariation
Section titled “scaleVariation”[Tooltip("Maximum signed proportional scale variation on the local right, up, and forward axes.")]public Vector3 scaleVariationReturns
UnityEngine.Vector3
rotationVariation
Section titled “rotationVariation”[Tooltip("Maximum signed local Euler variation in degrees after the resolved attachment orientation.")]public Vector3 rotationVariationReturns
UnityEngine.Vector3
prefab
Section titled “prefab”[Tooltip("Prefab whose first readable MeshFilter or Skinned Mesh Renderer supplies repeat geometry. Child objects are supported.")]public GameObject prefabReturns
UnityEngine.GameObject
Properties
Section titled “Properties”
Default
Section titled “Default”public static ContourRepeat3DSpec Default { get; }Returns
TextStudio.ThreeD.ContourRepeat3DSpec