ドキュメント

Unity Engine

Download Unity

Unity Engine

Validate()

Get a validated version of the geometry, if possible.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly PolygonGeometry Validate()

Returns

Type

Description

PolygonGeometryA 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.