Transforms a 3D world position to viewport space coordinates in centimeters. Returns a vector3 where Left is the horizontal viewport coordinate (positive is rightward from the screen's top-left corner) and Up is the vertical viewport coordinate (positive is upward, so a point below the top of the screen has a negative Up). Forward is always 0 because viewport coordinates are 2D. Fails if the world position is behind the camera.
Verse using statement |
using { /Verse.org/Input } |
(Player:player).ProjectWorldToViewport<public><native>(WorldPosition:vector3):vector3
Parameters
ProjectWorldToViewport takes the following parameters:
| Name | Type | Description |
|---|---|---|
Player |
player |
|
WorldPosition |
vector3 |
Attributes, Specifiers, and Effects
The following attributes, specifiers, and effects determine how you can interact with ProjectWorldToViewport 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. |