docs.unity3d.com
    Show / Hide Table of Contents

    Struct SimulationSingleton

    A simulation singleton. Use it to get simulation used by the physics engine. Call (SystemBase|SystemAPI|EntityQuery).GetSingleton<SimulationSingleton() to get read-only access. Call (SystemBase|SystemAPI|EntityQuery).GetSingletonRW<SimulationSingleton() to get read-write access.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    Syntax
    public struct SimulationSingleton : IComponentData, IQueryTypeParameter

    Fields

    Type

    The simulation type.

    Declaration
    public SimulationType Type
    Field Value
    Type Description
    SimulationType

    Methods

    AsSimulation()

    Converts this object to a simulation.

    Declaration
    public Simulation AsSimulation()
    Returns
    Type Description
    Simulation

    A Simulation.

    InitializeFromSimulation(ref Simulation)

    Initializes this object from the given simulation.

    Declaration
    public void InitializeFromSimulation(ref Simulation simulation)
    Parameters
    Type Name Description
    Simulation simulation

    [in,out] The simulation.

    Back to top
    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