s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
ScenePanel
chevron_left
Classes
class
ScenePanel
search
Constructors
functions
ScenePanel
Properties
remove_circle
Camera
data_object
RenderOnce
data_object
RenderScene
data_object
RenderTexture
remove_circle
World
Methods
functions
Delete
functions
OnDraw
functions
RenderNextFrame
functions
SetProperty
functions
Tick
ScenePanel
Allows to render a scene world onto a panel.
class
Sandbox.UI
.
account_tree
extends
Panel
Sandbox.Engine
build
Constructors
1
ScenePanel
(
)
data_object
Properties
5
Camera
obsolete
SceneCamera
The camera we're going to be using to render
RenderOnce
bool
If enabled, the scene will only render once. That isn't totally accurate though, because we'll also re-render the scene when the size of the panel changes.
RenderScene
Scene
The Scene this panel renders.
RenderTexture
Texture
The texture that the panel is rendering to internally. This will change to a different texture if the panel changes size, so I wouldn't hold onto this object.
World
obsolete
SceneWorld
Shortcut to Camera.World
functions
Methods
5
Delete
(
immediate
)
OnDraw
(
)
RenderNextFrame
(
)
Render the panel again next frame. This is meant to be used with RenderOnce, where you might want to render on demand or only once.
SetProperty
(
name
,
value
)
Tick
(
)
Inheritance
Panel
ScenePanel
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.