UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
InterchangePrivateNodeBase Namespace Reference

Functions

template<typename ValueType >
bool GetCustomAttribute (const UE::Interchange::FAttributeStorage &Attributes, const UE::Interchange::FAttributeKey &AttributeKey, const FString &OperationName, ValueType &OutAttributeValue)
 
template<typename ValueType >
bool SetCustomAttribute (UE::Interchange::FAttributeStorage &Attributes, const UE::Interchange::FAttributeKey &AttributeKey, const FString &OperationName, const ValueType &AttributeValue)
 
INTERCHANGECORE_API FPropertyFindPropertyByPathChecked (TVariant< UObject *, uint8 * > &Container, UStruct *Outer, FStringView PropertyPath)
 

Detailed Description

Internal Helper to get set custom property for class that derive from UInterchangeBaseNode. This is used by the macro IMPLEMENT_UOD_ATTRIBUTE.

Function Documentation

◆ FindPropertyByPathChecked()

FProperty * InterchangePrivateNodeBase::FindPropertyByPathChecked ( TVariant< UObject *, uint8 * > &  Container,
UStruct Outer,
FStringView  PropertyPath 
)

Finds a property by name in Outer and supports looking into FStructProperties (embedded structs) with a '.' separating the property names.

Parameters
Container- The container for the property values. If the final property is inside a UScriptStruct, the container will be set to the UScriptStruct instance address.
Outer- The UStruct containing the top level property.
PropertyPath- A dot separated chain of properties. Doesn't support going through external objects.
Returns
The Property matching the last name in the PropertyPath.

◆ GetCustomAttribute()

template<typename ValueType >
bool InterchangePrivateNodeBase::GetCustomAttribute ( const UE::Interchange::FAttributeStorage Attributes,
const UE::Interchange::FAttributeKey AttributeKey,
const FString &  OperationName,
ValueType &  OutAttributeValue 
)

Retrieve a custom attribute if the attribute exists.

Parameters
Attributes- The attribute storage you want to query for the custom attribute.
AttributeKey- The storage key for the attribute.
OperationName- The name of the operation, in case there is an error.
OutAttributeValue- This is where we store the value we retrieve from the storage.
Returns
- returns true if the attribute exists in the storage and was queried without error. returns false if the attribute does not exist or there is an error retrieving it from the storage.

◆ SetCustomAttribute()

template<typename ValueType >
bool InterchangePrivateNodeBase::SetCustomAttribute ( UE::Interchange::FAttributeStorage Attributes,
const UE::Interchange::FAttributeKey AttributeKey,
const FString &  OperationName,
const ValueType &  AttributeValue 
)

Add or update a custom attribute value in the specified storage.

Parameters
Attributes- The attribute storage in which you want to add or update the custom attribute.
AttributeKey- The storage key for the attribute.
OperationName- The name of the operation, in case there is an error.
AttributeValue- The value to add or update in the storage.