API ReferenceSandbox
public class Sandbox.ComponentList
Methods
Showing 24 methods
public T GetInAncestors(bool includeDisabled = False)
Find component on this gameobject's ancestors
Parameters
includeDisabled: Default: False
public T GetInAncestorsOrSelf(bool includeDisabled = False)
Find component on this gameobject's ancestors or on self
Parameters
includeDisabled: Default: False
public T GetInChildren(bool includeDisabled = False)
Find component on this gameobject's immediate children
Parameters
includeDisabled: Default: False
public T GetInChildrenOrSelf(bool includeDisabled = False)
Find component on this gameobject's immediate children or on self
Parameters
includeDisabled: Default: False
public T GetInDescendants(bool includeDisabled = False)
Find component on this gameobject's decendants
Parameters
includeDisabled: Default: False
public T GetInDescendantsOrSelf(bool includeDisabled = False)
Find component on this gameobject's decendants or on self
Parameters
includeDisabled: Default: False
public T GetInParent(bool includeDisabled = False)
Find component on this gameobject's parent
Parameters
includeDisabled: Default: False
public T GetInParentOrSelf(bool includeDisabled = False)
Find component on this gameobject's parent or on self
Parameters
includeDisabled: Default: False
public T GetOrCreate(Sandbox.FindMode flags = 7)
Find this component, if it doesn't exist - create it.
Parameters
flags: Default: 7
public void Move(Sandbox.Component baseComponent, int delta)
Move the position of the component in the list by delta (-1 means up one, 1 means down one)
public bool TryGet(T component, Sandbox.FindMode search = 5)
Try to get this component
Parameters
search: Default: 5
No results match this filter.
Properties
Showing 1 properties
public int Sandbox.ComponentList.Count { get; set; }
Amount of components - including disabled
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.ComponentList |