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

Properties

data_objectCount

Methods

functionsCreatefunctionsFirstOrDefaultfunctionsForEachfunctionsGetfunctionsGetAllfunctionsGetInAncestorsfunctionsGetInAncestorsOrSelffunctionsGetInChildrenfunctionsGetInChildrenOrSelffunctionsGetInDescendantsfunctionsGetInDescendantsOrSelffunctionsGetInParentfunctionsGetInParentOrSelffunctionsGetOrCreatefunctionsMovefunctionsTryGet
menu
ComponentList
class Sandbox .
Sandbox.Engine

data_object Properties 1

Count
int
Amount of components - including disabled

functions Methods 16

Create (type, startEnabled)
Component
Add a component of this type
FirstOrDefault (value)
Component
ForEach (name, includeDisabled, action)
Get (search)
T
Get a component of this type
GetAll ()
IEnumerable`1
Get all components, including disabled ones
GetInAncestors (includeDisabled)
T
Find component on this gameobject's ancestors
GetInAncestorsOrSelf (includeDisabled)
T
Find component on this gameobject's ancestors or on self
GetInChildren (includeDisabled)
T
Find component on this gameobject's immediate children
GetInChildrenOrSelf (includeDisabled)
T
Find component on this gameobject's immediate children or on self
GetInDescendants (includeDisabled)
T
Find component on this gameobject's decendants
GetInDescendantsOrSelf (includeDisabled)
T
Find component on this gameobject's decendants or on self
GetInParent (includeDisabled)
T
Find component on this gameobject's parent
GetInParentOrSelf (includeDisabled)
T
Find component on this gameobject's parent or on self
GetOrCreate (flags)
T
Find this component, if it doesn't exist - create it.
Move (baseComponent, delta)
Move the position of the component in the list by delta (-1 means up one, 1 means down one)
TryGet (component, search)
bool
Try to get this component
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