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
WorldPanel
chevron_left
Classes
class
WorldPanel
search
Constructors
functions
WorldPanel
Properties
data_object
MaxInteractionDistance
data_object
Position
data_object
Rotation
data_object
Tags
data_object
Transform
data_object
WorldScale
Methods
functions
Delete
functions
OnDeleted
functions
RayToLocalPosition
lock
UpdateBounds
lock
UpdateScale
Static Properties
data_object
ScreenToWorldScale
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.