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
GameObjectDirectory
chevron_left
Classes
class
GameObjectDirectory
search
Properties
data_object
ComponentCount
data_object
Count
data_object
GameObjectCount
Methods
functions
FindByGuid
functions
FindByName
functions
FindComponentByGuid
Static Methods
functions
GetAll
GameObjectDirectory
New GameObjects and Components are registered with this class when they're created, and unregistered when they're removed. This gives us a single place to enforce Id uniqueness in the scene, and allows for fast lookups by Id.
class
Sandbox
.
sealed
Sandbox.Engine
data_object
Properties
3
ComponentCount
int
Count
int
GameObjectCount
int
functions
Methods
3
FindByGuid
(
guid
)
GameObject
Find a GameObject in the scene by Guid. This should be really really fast.
FindByName
(
name
,
caseinsensitive
)
IEnumerable`1
Find objects with this name. Not performant.
FindComponentByGuid
(
guid
)
Component
Find a Component in the scene by Guid. This should be really really fast.
functions
Static Methods
1
GetAll
(
target
)
IEnumerable`1
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.