Class MaterialSwapper | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class MaterialSwapper

    Inheritance
    System.Object
    MaterialSwapper
    Namespace: UnityEngine.Reflect
    Syntax
    public class MaterialSwapper

    Constructors

    MaterialSwapper()

    Declaration
    public MaterialSwapper()

    Methods

    AddRenderer(Renderer)

    Declaration
    public void AddRenderer(Renderer inRenderer)
    Parameters
    Type Name Description
    Renderer inRenderer

    Clear()

    Declaration
    public void Clear()

    ContainsRenderer(Renderer)

    Declaration
    public bool ContainsRenderer(Renderer inRenderer)
    Parameters
    Type Name Description
    Renderer inRenderer
    Returns
    Type Description
    System.Boolean

    Count()

    Declaration
    public int Count()
    Returns
    Type Description
    System.Int32

    Restore()

    Declaration
    public void Restore()

    SetMaterial(Material, HashSet<Renderer>, Int32)

    Declaration
    public void SetMaterial(Material inMaterial, HashSet<Renderer> excludedRenderer = null, int inStartAt = 0)
    Parameters
    Type Name Description
    Material inMaterial
    HashSet<Renderer> excludedRenderer
    System.Int32 inStartAt
    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