Version: 2023.1
言語: 日本語
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.

See Also: BoxGeometry, SphereGeometry, CapsuleGeometry, ConvexMeshGeometry, TriangleMeshGeometry, TerrainGeometry.