docs.unity.cn
    Show / Hide Table of Contents

    Class ComponentSingleton<TType>

    Singleton of a Component class.

    Inheritance
    Object
    ComponentSingleton<TType>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    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()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023