AsWorld(PhysicsWorld)
Get a copy of this handle that refers to the specified PhysicsWorld. The index and generation are preserved and only the world is changed, so the result refers to the same object slot in the specified world. This is useful when one world shares an identical handle layout with another, such as a world created from a snapshot of, or a clone of, the original.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsHandle AsWorld(PhysicsWorld world)
Parameters
The world the returned handle should refer to.
Returns
Type | Description |
|---|---|
| PhysicsHandle | A handle referring to the same slot and generation in the specified world. |