Navigation
API > API/Runtime > API/Runtime/Engine
Cached function name/ptr that is resolved at init time
| Name | FAnimNodeFunctionRef |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimNodeFunctionRef.h |
| Include Path | #include "Animation/AnimNodeFunctionRef.h" |
Syntax
USTRUCT ()
struct FAnimNodeFunctionRef
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Class | TObjectPtr< const UClass > | The class to use to call the function with, recovered by looking for a class of name FunctionName. | Animation/AnimNodeFunctionRef.h |
|
| ClassName | FName | The name of the class to call the function with. If this is NAME_None, we assume this is a 'thiscall', if it is valid then we assume (and verify) we should call the function on a function library CDO. | Animation/AnimNodeFunctionRef.h | |
| Function | TObjectPtr< UFunction > | The function to call, recovered by looking for a function of name FunctionName. | Animation/AnimNodeFunctionRef.h |
|
| FunctionName | FName | The name of the function to call. | Animation/AnimNodeFunctionRef.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Call
(
UObject* InObject, |
Call the function. | Animation/AnimNodeFunctionRef.h | |
UFunction * GetFunction() |
Get the function we reference. | Animation/AnimNodeFunctionRef.h | |
FName GetFunctionName() |
Get the function name. | Animation/AnimNodeFunctionRef.h | |
void Initialize
(
const UClass* InClass |
Cache the function ptr from the name. | Animation/AnimNodeFunctionRef.h | |
bool IsValid() |
Check if we reference a valid function. | Animation/AnimNodeFunctionRef.h | |
void SetFromFunction
(
UFunction* InFunction |
Set the function via a function. | Animation/AnimNodeFunctionRef.h | |
void SetFromFunctionName
(
FName InName |
Set the function via name. | Animation/AnimNodeFunctionRef.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FAnimNodeFunctionRef& InOther |
Override operator== as we only need to compare class/function names. | Animation/AnimNodeFunctionRef.h |