API Referenceglobal
public class Sandbox.Doo.TargetComponent
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
Constructors
Showing 1 constructors
public TargetComponent()
No results match this filter.
Methods
Showing 4 methods
public void CollectArguments(System.Collections.Generic.HashSet`1<string> arguments)
public System.Type GetComponentType()
public static override object JsonRead(System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert)
public static override void JsonWrite(object value, System.Text.Json.Utf8JsonWriter writer)
No results match this filter.
Properties
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.
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.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Doo.TargetComponent |