docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ColliderAspect.Lookup

    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 ColliderAspect.Lookup

    Constructors

    Lookup(ref SystemState)

    Create the aspect lookup from an system state.

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

    The system state to create the aspect lookup from.

    Properties

    this[Entity]

    Get an aspect instance pointing at a specific entity's components data.

    Declaration
    public ColliderAspect this[Entity entity] { get; }
    Parameters
    Type Name Description
    Entity entity

    The entity to create the aspect struct from.

    Property Value
    Type Description
    ColliderAspect

    Instance of the aspect struct pointing at a specific entity's components data.

    Methods

    Update(ref SystemState)

    Update the lookup container. Must be called every frames before using the lookup.

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

    The system state the aspect lookup 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)