Skip to content
CISV2.0GET IT ON FAB

REFERENCEFUNCTION LIBRARY

UCISFunctionLibrary

MODULECharacterInteractionSystemINCLUDECommon/CISFunctionLibrary.hPARENTUBlueprintFunctionLibrary

Blueprint helpers of the plugin: they add a component to an actor at run time, and find the components that a component reference names.

Functions

AUTHORITY · server, every machineLOCAL · this machinePURE · read only
UActorComponent* AddComponentToActor(AActor* Owner, TSubclassOf<UActorComponent> ComponentClass)

Creates a component of ComponentClass on Owner, registers it and adds it to the actor's components. Returns the new component, or null when Owner or ComponentClass is null. Call it on each machine that needs the component.

Category
CIS|FunctionLibrary
UPrimitiveComponent* GetPrimitiveComponentWithName(AActor* Actor, UPARAM(ref) const FCISPrimitiveComponentsOnActor& NameData, FVector& SocketLocation)
PURE

The component NameData names on Actor (ResolveComponentReference); SocketLocation is set only when one is found.

Category
CIS|FunctionLibrary
USceneComponent* GetSceneComponentWithName(AActor* Actor, UPARAM(ref) const FCISSceneComponentsOnActor& NameData, FVector& SocketLocation)
PURE

The component NameData names on Actor (ResolveComponentReference); SocketLocation is set only when one is found.

Category
CIS|FunctionLibrary
UActorComponent* ResolveComponentReference(AActor* Actor, const FComponentReference& Ref, const UClass* RequiredClass)
C++ ONLY

The component a reference names: 1. null when the reference is empty (no ComponentProperty, no PathToComponent) or Actor is null; 2. Ref.GetComponent(Actor) (the value of the property ComponentProperty, which finds native components such as CapsuleComponent or Mesh whose object name differs), when it is a valid RequiredClass and, without Ref.OtherActor, a component Actor owns; 3. else the component of the same actor (Ref.OtherActor when it is set, as GetComponent uses it) whose object name is ComponentProperty and that is a RequiredClass: how 1.x matched its saved names; 4. else null, with one warning per (actor class, name).