API Referenceglobal
TargetComponentclass
Abstracts a link to a component - which can be * An actual component * A GameObject and a component type * A Variable (GameObject or Component) and a component type
object→TargetComponent
Constructors1
Showing 1 constructors
public TargetComponent()
No results match this filter.
Methods4
Showing 4 methods
public void CollectArguments(System.Collections.Generic.HashSet`1<string> arguments)
| Parameter | Type | Description |
|---|---|---|
| arguments | HashSet<string> | — |
Returns:
void—public static override object JsonRead(System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert)
| Parameter | Type | Description |
|---|---|---|
| reader | Utf8JsonReader | — |
| typeToConvert | Type | — |
Returns:
object—public static override void JsonWrite(object value, System.Text.Json.Utf8JsonWriter writer)
| Parameter | Type | Description |
|---|---|---|
| value | object | — |
| writer | Utf8JsonWriter | — |
Returns:
void—No results match this filter.
Properties6
Showing 6 properties
public string Sandbox.Doo.TargetComponent.ComponentType { get; set; }
The type of Component we want to access. This allows us to select members that exist on this type.
Returns:
string—public Sandbox.Component Sandbox.Doo.TargetComponent.ComponentValue { get; set; }
The Component we want to target directly.
public Sandbox.FindMode Sandbox.Doo.TargetComponent.FindMode { get; set; }
public Sandbox.GameObject Sandbox.Doo.TargetComponent.GameObjectValue { get; set; }
The GameObject that contains the target component.
public Sandbox.Doo.TargetComponent.TargetType Sandbox.Doo.TargetComponent.Type { get; set; }
public string Sandbox.Doo.TargetComponent.VariableName { get; set; }
The name of the variable we're going to use. This can be a GameObject or a Component.
Returns:
string—No results match this filter.