{!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 ClientSimChangeDetected | Unity PolySpatial | 0.0.4
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ClientSimChangeDetected

    ClientSimChangeDetected(Dictionary<PolySpatialInstanceID, GameObjectNode>, Dictionary<PolySpatialInstanceID, GameObjectNode>)

    Compares 2 clientSim state collections to determine if a change is present between the states. Though similar to clientSim to hostPlatform state comparison, this alternative method is needed as there are no expected component conversions between clientSim-clientSim state comparisons, whereas clientSim-hostPlatform state comparison expects conversions among other known diffs.

    Declaration
    public bool ClientSimChangeDetected(Dictionary<PolySpatialInstanceID, PolySpatialStateValidator.GameObjectNode> previousClientSimState, Dictionary<PolySpatialInstanceID, PolySpatialStateValidator.GameObjectNode> currentClientSimState)
    Parameters
    Type Name Description
    Dictionary<PolySpatialInstanceID, PolySpatialStateValidator.GameObjectNode> previousClientSimState

    A previously generated clientSim state dictionary

    Dictionary<PolySpatialInstanceID, PolySpatialStateValidator.GameObjectNode> currentClientSimState

    The current clientSim state dictionary

    Returns
    Type Description
    bool

    true if a change is detected between the 2 state dictionaries, false otherwise

    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)