Validate()
Get a validated version of the geometry, if possible.
읽는 시간 1분최근 업데이트: 21일 전
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public readonly PolygonGeometry Validate()
Returns
Type | Description |
|---|---|
| PolygonGeometry | A validated copy of the geometry with updated normals, centroid etc. Depending on the current geometry, the returned geometry may not be valid. See PolygonGeometry.isValid. |