Version: 2023.2
언어: 한국어
public T As ();

반환

T Returns the basic geometric shape which is stored in the GeometryHolder.

설명

Return the specified geometric shape stored inside this Geometry Holder object.

This function throws an InvalidOperationException if you try to request a geometric shape that is not stored in the GeometryHolder.

In the case of CapsuleGeometry, when Unity retrieves the shape from a CapsuleCollider component, the CapsuleCollider.direction is not included. For this reason, you should assume the direction is always along the X axis.

Additional resources: BoxGeometry, SphereGeometry, CapsuleGeometry, ConvexMeshGeometry, TriangleMeshGeometry, TerrainGeometry.