Struct RenderMesh | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct RenderMesh

    Render Mesh with Material (must be instanced material) by object to world matrix. Specified by the LocalToWorld associated with Entity.

    Namespace: Unity.Rendering
    Syntax
    [Serializable]
    public struct RenderMesh : ISharedComponentData, IEquatable<RenderMesh>

    Fields

    castShadows

    Declaration
    public ShadowCastingMode castShadows
    Field Value
    Type Description
    ShadowCastingMode

    layer

    Declaration
    public int layer
    Field Value
    Type Description
    System.Int32

    material

    Declaration
    public Material material
    Field Value
    Type Description
    Material

    mesh

    Declaration
    public Mesh mesh
    Field Value
    Type Description
    Mesh

    receiveShadows

    Declaration
    public bool receiveShadows
    Field Value
    Type Description
    System.Boolean

    subMesh

    Declaration
    public int subMesh
    Field Value
    Type Description
    System.Int32

    Methods

    Equals(RenderMesh)

    Declaration
    public bool Equals(RenderMesh other)
    Parameters
    Type Name Description
    RenderMesh other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    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