TextStudio3DSurfaceQueryOptions
public readonly struct TextStudio3DSurfaceQueryOptionsLimits ray distance and selects the surface mode, face orientation, and material regions to test.
Constructors
Section titled “Constructors”
TextStudio3DSurfaceQueryOptions(float, TextStudio3DSurfaceQueryMode, TextStudio3DSurfaceBackfaces, TextStudioSurfaceMask)
Section titled “TextStudio3DSurfaceQueryOptions(float, TextStudio3DSurfaceQueryMode, TextStudio3DSurfaceBackfaces, TextStudioSurfaceMask)”public TextStudio3DSurfaceQueryOptions(float maximumDistance = 1000, TextStudio3DSurfaceQueryMode mode = TextStudio3DSurfaceQueryMode.Geometry, TextStudio3DSurfaceBackfaces backfaces = TextStudio3DSurfaceBackfaces.Cull, TextStudioSurfaceMask surfaces = TextStudioSurfaceMask.All)Configures a surface raycast; the distance must be positive and finite.
Parameters
| Name | Type |
|---|---|
maximumDistance |
System.Single |
mode |
TextStudio.ThreeD.TextStudio3DSurfaceQueryMode |
backfaces |
TextStudio.ThreeD.TextStudio3DSurfaceBackfaces |
surfaces |
TextStudio.TextStudioSurfaceMask |
Properties
Section titled “Properties”
MaximumDistance
Section titled “MaximumDistance”public float MaximumDistance { get; }Returns
System.Single
public TextStudio3DSurfaceQueryMode Mode { get; }Returns
TextStudio.ThreeD.TextStudio3DSurfaceQueryMode
Backfaces
Section titled “Backfaces”public TextStudio3DSurfaceBackfaces Backfaces { get; }Returns
TextStudio.ThreeD.TextStudio3DSurfaceBackfaces
Surfaces
Section titled “Surfaces”public TextStudioSurfaceMask Surfaces { get; }Returns
TextStudio.TextStudioSurfaceMask
Default
Section titled “Default”public static TextStudio3DSurfaceQueryOptions Default { get; }Returns
TextStudio.ThreeD.TextStudio3DSurfaceQueryOptions