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.

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

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961