docs.unity.cn
    Show / Hide Table of Contents

    Class EntityQueryManagedComponentExtensions

    Variants of EntityQuery methods that support managed component types

    Inheritance
    Object
    EntityQueryManagedComponentExtensions
    Namespace: Unity.Entities
    Syntax
    public static class EntityQueryManagedComponentExtensions

    Methods

    Name Description
    GetSingleton<T>(EntityQuery)

    Gets the value of a singleton component.

    GetSingletonRW<T>(EntityQuery)

    Gets the value of a singleton component, for read/write access.

    SetSingleton<T>(EntityQuery, T)

    Sets the value of a singleton component.

    TryGetSingleton<T>(EntityQuery, out T)

    Gets the value of a singleton component, for read/write access.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023