.. role:: ts-api-decorator

.. _MeshInstanceCreationFlags:

#########################
MeshInstanceCreationFlags
#########################

.. container:: ts-api-section

   Flags used when creating a mesh instance



.. container:: api-index-section

   .. rubric:: Enumeration Members

   .. rst-class:: api-index-list-item api-kind-enummember api-parent-kind-enum

   * :ref:`MeshInstanceCreationFlags.AlwaysDraw`
   * :ref:`MeshInstanceCreationFlags.DoNotCut`
   * :ref:`MeshInstanceCreationFlags.DoNotExplode`
   * :ref:`MeshInstanceCreationFlags.DoNotLight`
   * :ref:`MeshInstanceCreationFlags.DoNotOutlineHighlight`
   * :ref:`MeshInstanceCreationFlags.DoNotReset`
   * :ref:`MeshInstanceCreationFlags.DoNotSelect`
   * :ref:`MeshInstanceCreationFlags.DoNotUseVertexColors`
   * :ref:`MeshInstanceCreationFlags.DoNotXRay`
   * :ref:`MeshInstanceCreationFlags.ExcludeBounding`
   * :ref:`MeshInstanceCreationFlags.Invisible`
   * :ref:`MeshInstanceCreationFlags.None`
   * :ref:`MeshInstanceCreationFlags.OverrideSceneVisibility`
   * :ref:`MeshInstanceCreationFlags.ScreenOriented`
   * :ref:`MeshInstanceCreationFlags.ScreenSpace`
   * :ref:`MeshInstanceCreationFlags.ScreenSpaceStretched`
   * :ref:`MeshInstanceCreationFlags.SuppressCameraScale`





------------

Enumeration Members
===================

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.AlwaysDraw:

AlwaysDraw
----------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.DoNotCut:

DoNotCut
--------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.DoNotExplode:

DoNotExplode
------------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.DoNotLight:

DoNotLight
----------

If set, the instance will not be lit.

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.DoNotOutlineHighlight:

DoNotOutlineHighlight
---------------------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.DoNotReset:

DoNotReset
----------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.DoNotSelect:

DoNotSelect
-----------

If set, the instance will not be selectable.

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.DoNotUseVertexColors:

DoNotUseVertexColors
--------------------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.DoNotXRay:

DoNotXRay
---------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.ExcludeBounding:

ExcludeBounding
---------------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.Invisible:

Invisible
---------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.None:

None
----

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.OverrideSceneVisibility:

OverrideSceneVisibility
-----------------------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.ScreenOriented:

ScreenOriented
--------------

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

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.ScreenSpace:

ScreenSpace
-----------

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).

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.ScreenSpaceStretched:

ScreenSpaceStretched
--------------------

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.

.. rst-class:: ts-api-section

.. _MeshInstanceCreationFlags.SuppressCameraScale:

SuppressCameraScale
-------------------

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

