docs.unity.cn
    Show / Hide Table of Contents

    Struct PhysicsWorldIndex

    Shared component for entities that belong to a physics world. Default physics world is built in BuildPhysicsWorld, from entities that have Value of 0.

    Namespace: Unity.Physics
    Syntax
    public struct PhysicsWorldIndex : ISharedComponentData, IEquatable<PhysicsWorldIndex>

    Constructors

    PhysicsWorldIndex(UInt32)

    Constructor taking the physics world index, with default value of 0 (used for default physics world).

    Declaration
    public PhysicsWorldIndex(uint worldIndex = null)
    Parameters
    Type Name Description
    UInt32 worldIndex

    Fields

    Value

    Index of the physics world that this entity belongs to.

    Declaration
    public uint Value
    Field Value
    Type Description
    UInt32

    Methods

    Equals(PhysicsWorldIndex)

    Declaration
    public bool Equals(PhysicsWorldIndex other)
    Parameters
    Type Name Description
    PhysicsWorldIndex other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, April 26, 2022
    Terms of use