Skip to main content

SceneBox

SceneBox is to show models and characters in the interface.

  • Example

Properties

PropertyDescription
VisibleWhether the Back Image of the SceneBox is visible.
Back ImageSet the scene.

Events

addCallBack1

Callback nameCallback Function
on_clickThe callback when left-clicking.
on_mouse_wheelThe callback when clicking the mouse wheel.
on_drag_moveThe callback when dragging the left mouse button.

Lua Script Example

local scene = world:Create("RenderTex")
scene.Name = nx_string(scene)
scene.Width = scenebox.Width
scene.Height = scenebox.Height
scene:Load()
world:AddRenderTex(scene)
scenebox.BackImage = scene.Name