文档

Unity Engine

Unity Engine

defaultPhysicsScene

The PhysicsScene2D automatically created when Unity starts.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public static PhysicsScene2D defaultPhysicsScene { get; }

Remarks

A default PhysicsScene2D is automatically created when Unity starts. It is used by any Scene that does not request a local 2D physics Scene.