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
WorldPanel
chevron_left Classes
class
WorldPanel

Constructors

functionsWorldPanel

Properties

data_objectMaxInteractionDistancedata_objectPositiondata_objectRotationdata_objectTagsdata_objectTransformdata_objectWorldScale

Methods

functionsDeletefunctionsOnDeletedfunctionsRayToLocalPositionlockUpdateBoundslockUpdateScale

Static Properties

data_objectScreenToWorldScale
WorldPanel
An interactive 2D panel rendered in the 3D world.
class Sandbox.UI .account_tree extends RootPanel
Sandbox.Engine

build Constructors 1

WorldPanel (world)

data_object Properties 6

MaxInteractionDistance
float
Maximum distance at which a player can interact with this world panel.
Position
Vector3
Position of the world panel in 3D space.
Rotation
Rotation
Rotation of the world panel in 3D space.
Tags
ITagSet
Tags that are applied to the underlying SceneObject
Transform
Transform
Transform of the world panel in 3D space.
WorldScale
float
Scale of the world panel in 3D space.

functions Methods 5

Delete (immediate)
OnDeleted ()
RayToLocalPosition (ray, position, distance)
bool
UpdateBounds (rect)
Update the bounds for this panel. We purposely do nothing here because on world panels you can change the bounds by setting Sandbox.UI.RootPanel.PanelBounds.
UpdateScale (screenSize)
We override this to prevent the scale automatically being set based on screen size changing.. because that's obviously not needed here.

data_object Static Properties 1

ScreenToWorldScale
float

Inheritance

Panel
RootPanel
WorldPanel
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