docs.unity.cn
    Show / Hide Table of Contents

    Class PhysicsRuntimeExtensions

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

    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 Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, April 26, 2022
    Terms of use