class ComponentList

robot_2Generated
code_blocksInput

Description

The ComponentList class in the Sandbox namespace is a collection that manages components associated with a game object. It provides methods to add, retrieve, and manipulate components, including those that are disabled.

Members

Instance Members

Member NameSummary
GetAllGet all components, including disabled ones.
CreateAdd a component of this type.
GetGet a component of this type.
TryGetTry to get this component.
FirstOrDefaultAllows LINQ style queries.
ForEachPerform an action on each component.
MoveMove the position of the component in the list by delta.
GetOrCreateFind this component, if it doesn't exist - create it.
GetInAncestorsOrSelfFind component on this gameobject's ancestors or on self.
GetInAncestorsFind component on this gameobject's ancestors.
GetInDescendantsOrSelfFind component on this gameobject's descendants or on self.
GetInDescendantsFind component on this gameobject's descendants.
GetInChildrenOrSelfFind component on this gameobject's immediate children or on self.
GetInChildrenFind component on this gameobject's immediate children.
GetInParentOrSelfFind component on this gameobject's parent or on self.
GetInParentFind component on this gameobject's parent.
GetFind component on this gameobject with the specified id.
CountAmount of components - including disabled.