docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023