Skip to content

TextStudio3DSurfaceQueryOptions

StructTextStudio.ThreeDTextStudio.3D
public readonly struct TextStudio3DSurfaceQueryOptions

Limits ray distance and selects the surface mode, face orientation, and material regions to test.

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

NameType
maximumDistanceSystem.Single
modeTextStudio.ThreeD.TextStudio3DSurfaceQueryMode
backfacesTextStudio.ThreeD.TextStudio3DSurfaceBackfaces
surfacesTextStudio.TextStudioSurfaceMask

public float MaximumDistance { get; }

Returns

System.Single

public TextStudio3DSurfaceQueryMode Mode { get; }

Returns

TextStudio.ThreeD.TextStudio3DSurfaceQueryMode

public TextStudio3DSurfaceBackfaces Backfaces { get; }

Returns

TextStudio.ThreeD.TextStudio3DSurfaceBackfaces

public TextStudioSurfaceMask Surfaces { get; }

Returns

TextStudio.TextStudioSurfaceMask

public static TextStudio3DSurfaceQueryOptions Default { get; }

Returns

TextStudio.ThreeD.TextStudio3DSurfaceQueryOptions