docs.unity3d.com
    Show / Hide Table of Contents

    Class MaterialSlot

    Class MaterialSlot.

    Inheritance
    Object
    MaterialSlot
    Namespace: UnityEngine.Industrial.Configuring.Core
    Syntax
    [Serializable]
    public class MaterialSlot : IEquatable<MaterialSlot>

    Constructors

    MaterialSlot(Renderer, Int32)

    Initializes a new instance of the MaterialSlot class.

    Declaration
    public MaterialSlot(Renderer renderer, int index)
    Parameters
    Type Name Description
    Renderer renderer

    The renderer.

    Int32 index

    The index.

    Properties

    index

    Gets the index.

    Declaration
    public int index { get; }
    Property Value
    Type Description
    Int32

    The index.

    renderer

    Gets the renderer.

    Declaration
    public Renderer renderer { get; }
    Property Value
    Type Description
    Renderer

    The renderer.

    Methods

    Clone()

    Clones this instance.

    Declaration
    public MaterialSlot Clone()
    Returns
    Type Description
    MaterialSlot

    MaterialSlot.

    Equals(MaterialSlot)

    Equalses the specified other.

    Declaration
    public bool Equals(MaterialSlot other)
    Parameters
    Type Name Description
    MaterialSlot other

    The other.

    Returns
    Type Description
    Boolean

    true if XXXX, false otherwise.

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    Object.GetHashCode()

    ToString()

    Returns a String that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String that represents this instance.

    Overrides
    Object.ToString()
    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