Struct RenderMeshDescription
Represents how to setup and configure Entities Graphics entities.
Namespace: Unity.Rendering
Syntax
public struct RenderMeshDescription
Remarks
This is useful to convert GameObjects into entities, or to set component values on entities directly.
Constructors
RenderMeshDescription(Renderer)
Construct a RenderMeshDescription using defaults from the given Renderer object.
Declaration
public RenderMeshDescription(Renderer renderer)
Parameters
Type | Name | Description |
---|---|---|
Renderer | renderer | The renderer object (e.g. a MeshRenderer) to get default settings from. |
RenderMeshDescription(ShadowCastingMode, Boolean, MotionVectorGenerationMode, Int32, UInt32, LightProbeUsage, Boolean)
Construct a RenderMeshDescription using the given values.
Declaration
public RenderMeshDescription(ShadowCastingMode shadowCastingMode, bool receiveShadows = false, MotionVectorGenerationMode motionVectorGenerationMode = MotionVectorGenerationMode.Camera, int layer = 0, uint renderingLayerMask = 4294967295U, LightProbeUsage lightProbeUsage = LightProbeUsage.Off, bool staticShadowCaster = false)
Parameters
Type | Name | Description |
---|---|---|
ShadowCastingMode | shadowCastingMode | Mode for shadow casting |
Boolean | receiveShadows | Mode for shadow receival |
MotionVectorGenerationMode | motionVectorGenerationMode | Mode for motion vectors generation |
Int32 | layer | Rendering layer |
UInt32 | renderingLayerMask | Rendering layer mask |
LightProbeUsage | lightProbeUsage | Light probe usage mode |
Boolean | staticShadowCaster | Static shadow caster flag |
Fields
FilterSettings
Filtering settings that determine when to draw the entity.
Declaration
public RenderFilterSettings FilterSettings
Field Value
Type | Description |
---|---|
RenderFilterSettings |
LightProbeUsage
Determines what kinds of light probes the entity uses, if any.
Declaration
public LightProbeUsage LightProbeUsage
Field Value
Type | Description |
---|---|
LightProbeUsage |
Remarks
This value corresponds to LightProbeUsage.