s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
ScenePanel
chevron_left Classes
class
ScenePanel

Constructors

functionsScenePanel

Properties

remove_circleCameradata_objectRenderOncedata_objectRenderScenedata_objectRenderTextureremove_circleWorld

Methods

functionsDeletefunctionsOnDrawfunctionsRenderNextFramefunctionsSetPropertyfunctionsTick
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
obsoleteSceneCamera
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
obsoleteSceneWorld
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter