文档

Unity Engine

Unity Engine

usePhysicsLayers

Get if the option of PhysicsCoreSettings2D.usePhysicsLayers is active or not. If no PhysicsCoreSettings2D asset is assigned, this option will return false (inactive). When active, the physics 64-bit layers are used (see PhysicsCoreSettings2D.physicsLayerNames ) for property drawers and PhysicsLayers.GetLayerMask. When inactive, the 32-bit layers are used (see LayerMask ) for property drawers and PhysicsLayers.GetLayerMask. In all cases, the physics system itself will always use the full 64-bit layers assigned, however when using 32-bit layers, the top 32-bits will be set to zero.
阅读时间1 分钟最后更新于 22 天前

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static bool usePhysicsLayers { get; }