G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FComponentReference Struct Reference

Struct that allows for different ways to reference a component using TObjectPtr. If just an Actor is specified, will return RootComponent of that Actor. More...

Public Member Functions

Functions
FComponentReference & opAssign (FComponentReference Other)
UActorComponent GetComponent (AActor OwningActor) const
Public Member Functions inherited from FBaseComponentReference
FBaseComponentReference & opAssign (FBaseComponentReference Other)

Public Attributes

Component
FName ComponentProperty
 Name of component to use. If this is not specified the reference refers to the root component.
FString PathToComponent
 Path to the component from its owner actor.
TWeakObjectPtr< AActor > OtherActor
 Weak Pointer to a different Actor that owns the Component. If this is not provided the reference refers to a component on this / the same actor.
Public Attributes inherited from FBaseComponentReference
FString PathToComponent
 Path to the component from its owner actor.
FName ComponentProperty
 Name of component to use. If this is not specified the reference refers to the root component.

Detailed Description

Struct that allows for different ways to reference a component using TObjectPtr. If just an Actor is specified, will return RootComponent of that Actor.

Member Function Documentation

◆ GetComponent()

UActorComponent GetComponent ( AActor OwningActor) const

◆ opAssign()

Member Data Documentation

◆ ComponentProperty

FName ComponentProperty

Name of component to use. If this is not specified the reference refers to the root component.

◆ OtherActor

TWeakObjectPtr<AActor> OtherActor

Weak Pointer to a different Actor that owns the Component. If this is not provided the reference refers to a component on this / the same actor.

◆ PathToComponent

FString PathToComponent

Path to the component from its owner actor.