API ReferenceSandbox
ComponentListclass
object→ComponentList
Methods24
Showing 24 methods
public Sandbox.Component FirstOrDefault(System.Func`2<Sandbox.Component,bool> value)
| Parameter | Type | Description |
|---|---|---|
| value | Func<Component,bool> | — |
public T GetInAncestors(bool includeDisabled = False)
Find component on this gameobject's ancestors
| Parameter | Type | Description |
|---|---|---|
| includeDisabled = False | bool | — |
Returns:
T—public T GetInAncestorsOrSelf(bool includeDisabled = False)
Find component on this gameobject's ancestors or on self
| Parameter | Type | Description |
|---|---|---|
| includeDisabled = False | bool | — |
Returns:
T—public T GetInChildren(bool includeDisabled = False)
Find component on this gameobject's immediate children
| Parameter | Type | Description |
|---|---|---|
| includeDisabled = False | bool | — |
Returns:
T—public T GetInChildrenOrSelf(bool includeDisabled = False)
Find component on this gameobject's immediate children or on self
| Parameter | Type | Description |
|---|---|---|
| includeDisabled = False | bool | — |
Returns:
T—public T GetInDescendants(bool includeDisabled = False)
Find component on this gameobject's decendants
| Parameter | Type | Description |
|---|---|---|
| includeDisabled = False | bool | — |
Returns:
T—public T GetInDescendantsOrSelf(bool includeDisabled = False)
Find component on this gameobject's decendants or on self
| Parameter | Type | Description |
|---|---|---|
| includeDisabled = False | bool | — |
Returns:
T—public T GetInParent(bool includeDisabled = False)
Find component on this gameobject's parent
| Parameter | Type | Description |
|---|---|---|
| includeDisabled = False | bool | — |
Returns:
T—public T GetInParentOrSelf(bool includeDisabled = False)
Find component on this gameobject's parent or on self
| Parameter | Type | Description |
|---|---|---|
| includeDisabled = False | bool | — |
Returns:
T—public T GetOrCreate(Sandbox.FindMode flags = 7)
Find this component, if it doesn't exist - create it.
| Parameter | Type | Description |
|---|---|---|
| flags = 7 | FindMode | — |
Returns:
T—No results match this filter.
Properties1
Showing 1 properties
public int Sandbox.ComponentList.Count { get; set; }
Amount of components - including disabled
Returns:
int—No results match this filter.