文档

Unity Engine

Unity Engine

GUIPointToWorldRay(Vector2)

Convert 2D GUI position to a world space ray.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static Ray GUIPointToWorldRay(Vector2 position)

Parameters

position

Returns

Type

Description

Ray

Remarks

Uses the current camera to calculate the ray.