기술 자료

Unity Engine

Unity Engine

errorState

The error state that indicates the state of the physics shapes the 2D Collider tried to create. (Read Only)
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public ColliderErrorState2D errorState { get; }

Remarks

The 2D Collider can sometimes encounter an issue when creating the physics shapes which it represents. This can either be that some of the physics shapes were not able to be created or in the worst case, none of them could be created.
The 2D Collider may not be able to create an underlying physics shape due to the physics engine's constraints on physics shapes, such as the vertices must not be too close or collinear; or that the total physics shape area must not be too small.
Additional Resources: ColliderErrorState2D.