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

Game Jam III

Starts Fri 4 Sep
Theme

Theme revealed when the jam starts.

£50,000
prizepool
Read more
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started 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
ComponentList
chevron_left Classes
class
ComponentList

Properties

data_objectCount

Methods

functionsCreatefunctionsFirstOrDefaultfunctionsForEachfunctionsGetfunctionsGetAllfunctionsGetInAncestorsfunctionsGetInAncestorsOrSelffunctionsGetInChildrenfunctionsGetInChildrenOrSelffunctionsGetInDescendantsfunctionsGetInDescendantsOrSelffunctionsGetInParentfunctionsGetInParentOrSelffunctionsGetOrCreatefunctionsMovefunctionsTryGet
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter