These methods bellow can only be called on π§ Client
These methods only work on the local player
Returns | Name | Description |
---|---|---|
WebUI3d2d | GetTargetedWebUI3d2d |
Get the current targeted WebUI3d2d |
WebUI3d2d | GetCameraFocusedWebUI3d2d |
Get the current camera focused WebUI3d2d |
FocusWebUI3d2dCamera |
Focus the camera on a WebUI3d2d | |
UnfocusWebUI3d2dCamera |
Unfocus the WebUI3d2d camera |
Get the current targeted WebUI3d2d
Returns WebUI3d2d, or
nil
if no WebUI3d2d is targeted
local ret = my_player:GetTargetedWebUI3d2d()
Get the current camera focused WebUI3d2d
Returns WebUI3d2d, or
nil
if no WebUI3d2d has camera focus
local ret = my_player:GetCameraFocusedWebUI3d2d()
Focus the camera on a WebUI3d2d
my_player:FocusWebUI3d2dCamera(oWebUI, fCameraDist, fClipPlaneDist, iBlendTime)
Type | Name | Default | Description |
---|---|---|---|
WebUI3d2d | oWebUI |
The WebUI3d2d to focus the camera on | |
float | fCameraDist |
Calculated according to the mesh bounds if nil or false |
The distance from the camera to the WebUI3d2d |
float | fClipPlaneDist |
Calculated according to the mesh bounds if nil or false |
The distance from the camera to the clip plane |
integer | iBlendTime |
500 |
The time it takes to blend to the new camera position |
Unfocus the WebUI3d2d camera
my_player:UnfocusWebUI3d2dCamera()