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

objectTargetComponent
Namespace
global
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Doo.TargetComponent

Constructors1

Showing 1 constructors

Methods4

Showing 4 methods

public void CollectArguments(System.Collections.Generic.HashSet`1<string> arguments)PUBLIC

ParameterTypeDescription
argumentsHashSet<string>
Returns:void

public System.Type GetComponentType()PUBLIC

Returns:Type

public static override object JsonRead(System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert)PUBLICSTATICOVERRIDE

ParameterTypeDescription
readerUtf8JsonReader
typeToConvertType
Returns:object

public static override void JsonWrite(object value, System.Text.Json.Utf8JsonWriter writer)PUBLICSTATICOVERRIDE

ParameterTypeDescription
valueobject
writerUtf8JsonWriter
Returns:void

Properties6

Showing 6 properties

public string Sandbox.Doo.TargetComponent.ComponentType { get; set; }PUBLICGETSET

The type of Component we want to access. This allows us to select members that exist on this type.

Returns:string

public string Sandbox.Doo.TargetComponent.VariableName { get; set; }PUBLICGETSET

The name of the variable we're going to use. This can be a GameObject or a Component.

Returns:string

On this page