MeshInstanceCreationFlags

MeshInstanceCreationFlags

Flags used when creating a mesh instance

Enumeration Members

MeshInstanceCreationFlags.AlwaysDraw
AlwaysDraw: 2048

If set, the instance will be drawn before other instances and will not be culled in order to reach the target frame rate.

MeshInstanceCreationFlags.DoNotCut
DoNotCut: 4

If set, the instance will not be affected by cutting planes.

MeshInstanceCreationFlags.DoNotExplode
DoNotExplode: 8

If set, the instance will not be affected by explode.

MeshInstanceCreationFlags.DoNotLight
DoNotLight: 32

If set, the instance will not be lit.

MeshInstanceCreationFlags.DoNotOutlineHighlight
DoNotOutlineHighlight: 64

If set, the instance will not be outlined when highlighted.

MeshInstanceCreationFlags.DoNotReset
DoNotReset: 32768

If set, the instance will not be affected by resets. Or by methods that unset or reset certain properties on the instance

MeshInstanceCreationFlags.DoNotSelect
DoNotSelect: 16

If set, the instance will not be selectable.

MeshInstanceCreationFlags.DoNotUseVertexColors
DoNotUseVertexColors: 256

If set, the instance will not use the mesh’s per-vertex colors.

MeshInstanceCreationFlags.DoNotXRay
DoNotXRay: 1024

If set, the instance will not be affected by [[DrawMode.XRay]].

MeshInstanceCreationFlags.ExcludeBounding
ExcludeBounding: 128

If set, the instance will not be included in bounding calculations.

MeshInstanceCreationFlags.Invisible
Invisible: 512

If set, the instance will not be visible until explicitly made visible.

MeshInstanceCreationFlags.None
None: 0
MeshInstanceCreationFlags.OverrideSceneVisibility
OverrideSceneVisibility: 4096

If set, the instance will ignore scene-level visibility.

MeshInstanceCreationFlags.ScreenOriented
ScreenOriented: 2

If set, the instance will be oriented such that the cardinal axes of object space are aligned with the cardinal axes of screen space.

MeshInstanceCreationFlags.ScreenSpace
ScreenSpace: 8192

If set, the instance will be drawn in a space that extends from X=-1 at the left side of the screen to X=1 at the right side of the screen and from Y=-1 at the bottom of the screen to Y=1 at the top of the screen.

If the aspect ratio of the screen is not 1:1, the instance will be scaled so that it appears as if the aspect ratio were 1:1 (i.e., so that the instances will not appear stretched).

MeshInstanceCreationFlags.ScreenSpaceStretched
ScreenSpaceStretched: 16384

If set, the instance will be drawn in a space that extends from X=-1 at the left side of the screen to X=1 at the right side of the screen and from Y=-1 at the bottom of the screen to Y=1 at the top of the screen.

If the aspect ratio of the screen is not 1:1, the instance will stretch in the direction of the longer side.

MeshInstanceCreationFlags.SuppressCameraScale
SuppressCameraScale: 1

If set, the instance will be drawn at the same size regardless of camera settings.