s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games

Gamejams

Date
Theme

Date announced very soon. Theme revealed when the jam starts.

$50,000
prizepool
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter