{!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 MakeUnique | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MakeUnique

    MakeUnique(ref PhysicsCollider, in Entity, EntityManager)

    Makes this collider unique if this is not already the case.

    Declaration
    public static void MakeUnique(this ref PhysicsCollider collider, in Entity entity, EntityManager entityManager)
    Parameters
    Type Name Description
    PhysicsCollider collider

    The PhysicsCollider component representing the collider.

    Entity entity

    The entity which contains the PhysicsCollider component.

    EntityManager entityManager

    An entity manager, required for this operation.

    MakeUnique(ref PhysicsCollider, in Entity, EntityCommandBuffer)

    Makes this collider unique if this is not already the case.

    Declaration
    public static void MakeUnique(this ref PhysicsCollider collider, in Entity entity, EntityCommandBuffer ecb)
    Parameters
    Type Name Description
    PhysicsCollider collider

    The PhysicsCollider component representing the collider.

    Entity entity

    The entity which contains the PhysicsCollider component.

    EntityCommandBuffer ecb

    An entity command buffer, required for this operation.

    MakeUnique(ref PhysicsCollider, in Entity, ParallelWriter, int)

    Makes this collider unique if this is not already the case. This function can be used in a job.

    Declaration
    public static void MakeUnique(this ref PhysicsCollider collider, in Entity entity, EntityCommandBuffer.ParallelWriter ecbParallelWriter, int sortKey)
    Parameters
    Type Name Description
    PhysicsCollider collider

    The PhysicsCollider component representing the collider.

    Entity entity

    The entity which contains the PhysicsCollider component.

    EntityCommandBuffer.ParallelWriter ecbParallelWriter

    An entity command buffer's parallel writer, required for this operation.

    int sortKey

    A unique index required for adding a component through the provided ecbParallelWriter. See AddComponent<T>(int, Entity, T) for details.

    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)