HandleUtility.WorldPointToSizedRect

Cambiar al Manual
public static Rect WorldPointToSizedRect (Vector3 position, GUIContent content, GUIStyle style);

Parámetros

positionThe world-space position to use.
contentThe content to make room for.
styleThe style to use. The style's alignment.

Descripción

Calculate a rectangle to display a 2D GUI element near a projected point in 3D space.

This function is useful when 3D objects need labels or other 2D controls that follow them around in 3D space as the camera moves.

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