docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ComponentSingleton<TType>

    Singleton of a Component class.

    Inheritance
    object
    ComponentSingleton<TType>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public static class ComponentSingleton<TType> where TType : Component
    Type Parameters
    Name Description
    TType

    Component type.

    Properties

    instance

    Instance of the required component type.

    Declaration
    public static TType instance { get; }
    Property Value
    Type Description
    TType

    Methods

    Release()

    Release the component singleton.

    Declaration
    public static void Release()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)