Version: 2022.3
言語: 日本語
public static float DistanceToRectangle (Vector3 position, Quaternion rotation, float size);

説明

Returns the distance in pixels from the mouse pointer to a rectangle on screen.

マウスポインターから矩形までのスクリーン空間での距離を計算します。

現在のカメラが距離を決定するのに使います。