docs.unity3d.com
    Show / Hide Table of Contents

    Class PhysicsRuntimeExtensions

    Inheritance
    Object
    PhysicsRuntimeExtensions
    Namespace: Unity.Physics.Systems
    Syntax
    public static class PhysicsRuntimeExtensions

    Methods

    RegisterPhysicsRuntimeSystemReadOnly(SystemBase)

    Call in your system's OnStartRunning() method if you only want to read physics runtime data from the default physics world

    Declaration
    public static void RegisterPhysicsRuntimeSystemReadOnly(this SystemBase system)
    Parameters
    Type Name Description
    SystemBase system

    RegisterPhysicsRuntimeSystemReadOnly<T>(SystemBase)

    Call in your system's OnStartRunning() method if you only want to read physics runtime data from a non-default physics world. Each non-default PhysicsWorld should have its own ComponentData type passed in.

    Declaration
    public static void RegisterPhysicsRuntimeSystemReadOnly<T>(this SystemBase system)
        where T : struct, IComponentData
    Parameters
    Type Name Description
    SystemBase system
    Type Parameters
    Name Description
    T

    RegisterPhysicsRuntimeSystemReadWrite(SystemBase)

    Call in your system's OnStartRunning() method if you want to read and write physics runtime data from the default physics world

    Declaration
    public static void RegisterPhysicsRuntimeSystemReadWrite(this SystemBase system)
    Parameters
    Type Name Description
    SystemBase system

    RegisterPhysicsRuntimeSystemReadWrite<T>(SystemBase)

    Call in your system's OnStartRunning() method if you want to read and write physics runtime data from a non-default physics world. Each non-default PhysicsWorld should have its own ComponentData type passed in.

    Declaration
    public static void RegisterPhysicsRuntimeSystemReadWrite<T>(this SystemBase system)
        where T : struct, IComponentData
    Parameters
    Type Name Description
    SystemBase system
    Type Parameters
    Name Description
    T
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023