{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method GetEnabledRefRW | Entities | 1.2.0-exp.3
docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetEnabledRefRW

    GetEnabledRefRW<T2>(Entity)

    Gets a safe reference to the component enabled state.

    Declaration
    public EnabledRefRW<T2> GetEnabledRefRW<T2>(Entity entity) where T2 : unmanaged, IEnableableComponent, IComponentData
    Parameters
    Type Name Description
    Entity entity

    The referenced entity

    Returns
    Type Description
    EnabledRefRW<T2>

    Returns a safe reference to the component enabled state. Throws an exception if the component doesn't exist.

    Type Parameters
    Name Description
    T2

    The component type

    In This Article
    Back to top
    Copyright © 2023 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)