docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EntityQueryManagedComponentExtensions

    Variants of EntityQuery methods that support managed component types

    Inheritance
    object
    EntityQueryManagedComponentExtensions
    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public static class EntityQueryManagedComponentExtensions

    Methods

    Name Description
    GetSingletonRW<T>(EntityQuery)

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

    GetSingleton<T>(EntityQuery)

    Gets the value of a singleton component.

    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.

    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)