기술 자료

Unity Engine

Unity Engine

isValid

Whether the geometry describes a chain that can be used.
읽는 시간 1분최근 업데이트: 24일 전

Definition

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

Remarks

There must be at least three vertices, every vertex must be finite, and each consecutive pair must be further apart than PhysicsWorld.minEdgeLength. The closing edge of a loop is not checked here because the geometry does not carry the loop intent; that edge is checked when the segments are created.