ドキュメント

Unity Engine

Unity Engine

GUIPointToWorldRay(Vector2)

Convert 2D GUI position to a world space ray.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

Parameters

position

Returns

Type

Description

Ray

Remarks

Uses the current camera to calculate the ray.