ドキュメント

Unity Engine

Unity Engine

ColliderErrorState2D

Indicates what (if any) error was encountered when creating a 2D Collider.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public enum ColliderErrorState2D

Remarks

This error state can be read directly from the 2D Collider via the property: Collider2D.errorState.

Fields

Value

Description

NoneIndicates that no error was encountered, therefore the 2D Collider was created successfully.
NoShapesIndicates that no physics shapes were created by the 2D Collider because the state of 2D Collider resulted in vertices too close or an area that is too small for the physics engine to handle.
RemovedShapesIndicates that some physics shapes were not created by the 2D Collider because the state of 2D Collider resulted in vertices too close or an area that is too small for the physics engine to handle.