Version: 2022.2
言語: 日本語

ClosestPointCommandConstructor

マニュアルに切り替える
public ClosestPointCommand (Vector3 point, int colliderInstanceID, Vector3 position, Quaternion rotation, Vector3 scale);

パラメーター

point Location you want to find the closest point to.
colliderInstanceID The ID of the Collider that you find the closest point on.
position The position of the Collider.
rotation The rotation of the Collider.
scale The global scale of the Collider.

説明

Create a ClosestPointCommand using Instance ID of the Collider.


public ClosestPointCommand (Vector3 point, Collider collider, Vector3 position, Quaternion rotation, Vector3 scale);

パラメーター

point Location you want to find the closest point to.
collider The Collider that you find the closest point on.
position The position of the Collider.
rotation The rotation of the Collider.
scale The global scale of the Collider.

説明

Schedule a batch of closest points which are performed in a job.

Can only be invoked from the main thread, since Unity Components are unavailable off the main thread. In the threaded context, use the other constructor that accepts Instance ID instead.

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