기술 자료

Unity Engine

Download Unity

Unity Engine

GetGeometry<T>()

Returns the geometric shape of the collider of the requested type.
읽는 시간 1분최근 업데이트: 하루 전

Definition

public T GetGeometry<T>() where T : struct, IGeometry

Returns

Type

Description

TType of geometrical shape.

Remarks

Throws an InvalidOperationException if you request a shape that is not present in the collider. Additional Resources: BoxGeometry, SphereGeometry, CapsuleGeometry, ConvexMeshGeometry, TriangleMeshGeometry, TerrainGeometry.