docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RigidBodyAspect.TypeHandle

    A handle to the enclosing aspect type, used to access a RigidBodyAspect.ResolvedChunk's components data in a job. Equivalent to Unity.Entities.ComponentTypeHandle<T> but for aspect types. Constructed from an system state via its constructor.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics.Aspects
    Assembly: Unity.Physics.dll
    Syntax
    public struct RigidBodyAspect.TypeHandle

    Constructors

    TypeHandle(ref SystemState)

    Create the aspect type handle from an system state.

    Declaration
    public TypeHandle(ref SystemState state)
    Parameters
    Type Name Description
    SystemState state

    System state to create the type handle from.

    Methods

    Resolve(ArchetypeChunk)

    Get the enclosing aspect's RigidBodyAspect.ResolvedChunk from an Unity.Entities.ArchetypeChunk.

    Declaration
    public RigidBodyAspect.ResolvedChunk Resolve(ArchetypeChunk chunk)
    Parameters
    Type Name Description
    ArchetypeChunk chunk

    The ArchetypeChunk to extract the aspect's ResolvedChunk from.

    Returns
    Type Description
    RigidBodyAspect.ResolvedChunk

    A ResolvedChunk representing all instances of the aspect in the chunk.

    Update(ref SystemState)

    Update the type handle container. Must be called every frames before using the type handle.

    Declaration
    public void Update(ref SystemState state)
    Parameters
    Type Name Description
    SystemState state

    The system state the aspect type handle was created from.

    In This Article
    Back to top
    Copyright © 2024 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)