기술 자료

Unity Engine

Unity Engine

GUIPointToWorldRay(Vector2)

Convert 2D GUI position to a world space ray.
읽는 시간 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.