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".
Read time 1 minuteLast updated 7 days ago
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.