Version: 2023.2
public ColliderErrorState2D errorState ;

描述

The error state that indicates the state of the physics shapes the 2D Collider tried to create. (Read Only)

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.

See Also: ColliderErrorState2D.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961