Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
Weak Trait Pointer Same as a FTraitPtr but is strongly typed to be weak.
Weak trait pointers should be used carefully!
| Name | FWeakTraitPtr |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/TraitCore/TraitPtr.h |
| Include Path | #include "TraitCore/TraitPtr.h" |
Syntax
struct FWeakTraitPtr
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr FWeakTraitPtr () |
Constructs an invalid weak pointer handle. | TraitCore/TraitPtr.h | |
FWeakTraitPtr
(
const FTraitPtr& TraitPtr |
Constructs a weak pointer handle from a shared pointer handle. | TraitCore/TraitPtr.h | |
FWeakTraitPtr
(
FNodeInstance* InNodeInstance, |
Constructs a weak pointer handle to the provided instance. | TraitCore/TraitPtr.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NodeInstance | FNodeInstance * | TraitCore/TraitPtr.h | ||
| TraitIndex | uint32 | TraitCore/TraitPtr.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNodeInstance * GetNodeInstance() |
Returns a pointer to the node instance. | TraitCore/TraitPtr.h | |
uint32 GetTraitIndex() |
Returns the trait index this pointer handle references. | TraitCore/TraitPtr.h | |
bool IsValid() |
Returns true when the pointer is valid, false otherwise. | TraitCore/TraitPtr.h | |
void Reset() |
Clears the handle and renders it invalid. | TraitCore/TraitPtr.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FWeakTraitPtr& RHS |
TraitCore/TraitPtr.h | ||
bool operator!=
(
const FTraitPtr& RHS |
TraitCore/TraitPtr.h | ||
bool operator==
(
const FWeakTraitPtr& RHS |
Equality and inequality tests. | TraitCore/TraitPtr.h | |
bool operator==
(
const FTraitPtr& RHS |
TraitCore/TraitPtr.h |