Transforms the given viewport space coordinates into 3D world origin and direction vectors. ViewportPosition is in centimeters: Left is the horizontal coordinate (positive rightward from the top-left corner) and Up is the vertical coordinate (positive upward, negative for points below the top of the screen). Only the Left and Up components are used; Forward is intentionally ignored because depth is unknown at the point of screen interaction — trace the returned ray against scene geometry to determine the world-space hit point at the correct depth.
Verse using statement |
using { /Verse.org/Input } |
(Player:player).DeprojectViewportToWorld<public><native>(ViewportPosition:vector3):deproject_results
Parameters
DeprojectViewportToWorld takes the following parameters:
| Name | Type | Description |
|---|---|---|
Player |
player |
|
ViewportPosition |
vector3 |
Attributes, Specifiers, and Effects
The following attributes, specifiers, and effects determine how you can interact with DeprojectViewportToWorld in your programs, as well as how it behaves in your programs and UEFN. For the complete list of attributes, specifiers, and effects; see the Specifiers Page.
Attributes
| Attribute | Arguments | Meaning |
|---|---|---|
available |
MinUploadedAtFNVersion := 4100 |
|
experimental |
This feature is in an experimental state, and you cannot publish projects implmenting it. The API for this feature is subject to change and backward compatibility is not guaranteed. |
Specifiers
| Specifier | Meaning |
|---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |
native |
Indicates that the definition details of the element are implemented in C++. Verse definitions with the native specifier auto-generate C++ definitions that a developer can then fill out its implementation. You can use this specifier on classes, interfaces, enums, methods, and data. |