GetName()
Get the name of the world, or "World #N" where N is the PhysicsWorld.index when no name has been set. The PhysicsWorld.defaultWorld is always named "Default World".
阅读时间1 分钟最后更新于 22 天前
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public string GetName()
Returns
Type | Description |
|---|---|
| string | The name of the world. |
Remarks
A new string is allocated each call, as with any API returning a string such as ToString. See PhysicsWorld.SetName.