Navigation
API > API/Runtime > API/Runtime/InterchangeCore
This struct is used to store and retrieve key-value attributes. The attributes are stored in a generic FAttributeStorage that serializes the values in a TArray64
| Name | UInterchangeBaseNode |
| Type | class |
| Header File | /Engine/Source/Runtime/Interchange/Core/Public/Nodes/InterchangeBaseNode.h |
| Include Path | #include "Nodes/InterchangeBaseNode.h" |
Syntax
UCLASS (BlueprintType, MinimalAPI)
class UInterchangeBaseNode : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInterchangeBaseNode
Derived Classes
UInterchangeBaseNode derived class hierarchy
- UInterchangeFactoryBaseNode
- UInterchangeAnimationTrackBaseNode
- UInterchangeAnimationTrackSetNode
- UInterchangeAudioSoundWaveNode
- UInterchangeBaseLightNode
- UInterchangeDecalNode
- UInterchangeGroomNode
- UInterchangeMaterialInstanceNode
- UInterchangeMaterialReferenceNode
- UInterchangeMeshLODContainerNode
- UInterchangeMeshNode
- UInterchangePhysicalCameraNode
- UInterchangeSceneComponentNode
- UInterchangeSceneNode
- UInterchangeSceneVariantSetsNode
- UInterchangeShaderNode
- UInterchangeSourceNode
- UInterchangeSpecularProfileNode
- UInterchangeStandardCameraNode
- UInterchangeTextureNode
- UInterchangeVariantSetNode
- UInterchangeVolumeGridNode
- UInterchangeVolumeNode
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UInterchangeBaseNode() |
Nodes/InterchangeBaseNode.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| HierarchySeparator | const TCHAR * | Nodes/InterchangeBaseNode.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| UserInterfaceContext | EInterchangeNodeUserInterfaceContext | Temporary property set by UI to have the context for ShouldHideAttribute. | Nodes/InterchangeBaseNode.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AddBooleanAttribute
(
const FString& NodeAttributeKey, |
Add a Boolean attribute to this node. | Nodes/InterchangeBaseNode.h |
|
bool AddDoubleAttribute
(
const FString& NodeAttributeKey, |
Add a double attribute to this node. | Nodes/InterchangeBaseNode.h |
|
bool AddFloatAttribute
(
const FString& NodeAttributeKey, |
Add a float attribute to this node. | Nodes/InterchangeBaseNode.h |
|
bool AddGuidAttribute
(
const FString& NodeAttributeKey, |
Add a GUID attribute to this node. | Nodes/InterchangeBaseNode.h |
|
bool AddInt32Attribute
(
const FString& NodeAttributeKey, |
Add a int32 attribute to this node. | Nodes/InterchangeBaseNode.h |
|
bool AddLinearColorAttribute
(
const FString& NodeAttributeKey, |
Add an FLinearColor attribute to this node. | Nodes/InterchangeBaseNode.h |
|
bool AddStringAttribute
(
const FString& NodeAttributeKey, |
Add a string attribute to this node. | Nodes/InterchangeBaseNode.h |
|
bool AddTargetNodeUid
(
const FString& AssetUid |
Add an asset node UID relating to this object. | Nodes/InterchangeBaseNode.h |
|
bool AddVector2Attribute
(
const FString& NodeAttributeKey, |
Add a Vector2 attribute to this node. | Nodes/InterchangeBaseNode.h |
|
virtual void AppendAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Nodes/InterchangeBaseNode.h | ||
virtual void AppendAssetRegistryTags
(
FAssetRegistryTagsContext Context |
Nodes/InterchangeBaseNode.h | ||
virtual FString GetAssetName () |
Optional. | Nodes/InterchangeBaseNode.h |
|
bool GetAttribute
(
const FString& NodeAttributeKey, |
Nodes/InterchangeBaseNode.h | ||
virtual FString GetAttributeCategory
(
const UE::Interchange::FAttributeKey& NodeAttributeKey |
UI that inspects node attributes calls this to display the attribute under the returned category. | Nodes/InterchangeBaseNode.h | |
AttributeType GetAttributeChecked
(
const FString& NodeAttributeKey |
Nodes/InterchangeBaseNode.h | ||
UE::Interchange::FAttributeStorage::TAttributeHandle< T > GetAttributeHandle
(
const UE::Interchange::FAttributeKey& NodeAttributeKey |
This function returns an attribute handle for the specified Key. | Nodes/InterchangeBaseNode.h | |
void GetAttributeKeys
(
TArray< UE::Interchange::FAttributeKey >& AttributeKeys |
Query all the node attribute keys. | Nodes/InterchangeBaseNode.h | |
virtual UE::Interchange::EAttributeTypes GetAttributeType
(
const UE::Interchange::FAttributeKey& NodeAttributeKey |
This function returns an attribute type for the specified Key. | Nodes/InterchangeBaseNode.h | |
bool GetBooleanAttribute
(
const FString& NodeAttributeKey, |
Get a Boolean attribute from this node. Returns false if the attribute does not exist. | Nodes/InterchangeBaseNode.h |
|
int32 GetDesiredChildIndex () |
Return the desired child index. | Nodes/InterchangeBaseNode.h |
|
FString GetDisplayLabel() |
Return the display label. | Nodes/InterchangeBaseNode.h |
|
bool GetDoubleAttribute
(
const FString& NodeAttributeKey, |
Get a double attribute from this node. Returns false if the attribute does not exist. | Nodes/InterchangeBaseNode.h |
|
bool GetFloatAttribute
(
const FString& NodeAttributeKey, |
Get a float attribute from this node. Returns false if the attribute does not exist. | Nodes/InterchangeBaseNode.h |
|
| Get a GUID attribute from this node. Returns false if the attribute does not exist. | Nodes/InterchangeBaseNode.h |
|
|
| Return an FGuid built from the FSHA1 of all the attribute data contained in the node. | Nodes/InterchangeBaseNode.h | ||
virtual FName GetIconName() |
Icon name, used to retrieve the brush when we display the node in any UI. | Nodes/InterchangeBaseNode.h |
|
bool GetInt32Attribute
(
const FString& NodeAttributeKey, |
Get a int32 attribute from this node. Returns false if the attribute does not exist. | Nodes/InterchangeBaseNode.h |
|
virtual FString GetKeyDisplayName
(
const UE::Interchange::FAttributeKey& NodeAttributeKey |
UI that inspects node attributes calls this to give a readable name to an attribute key. | Nodes/InterchangeBaseNode.h | |
bool GetLinearColorAttribute
(
const FString& NodeAttributeKey, |
Get an FLinearColor attribute from this node. | Nodes/InterchangeBaseNode.h |
|
bool GetNamespace
(
FString& Namespace |
Namespace is a prefix added when calling GetUniqueId(). | Nodes/InterchangeBaseNode.h |
|
EInterchangeNodeContainerType GetNodeContainerType() |
Return the node container type that defines the purpose of the node (factory node, translated scene node, or translated asset node). | Nodes/InterchangeBaseNode.h |
|
| Return the parent unique ID. | Nodes/InterchangeBaseNode.h |
|
|
| Get a string attribute from this node. Returns false if the attribute does not exist. | Nodes/InterchangeBaseNode.h |
|
|
int32 GetTargetNodeCount() |
Get the number of target assets relating to this object. | Nodes/InterchangeBaseNode.h |
|
| Get the target assets relating to this object. | Nodes/InterchangeBaseNode.h |
|
|
virtual FString GetTypeName() |
Return the node type name of the class. This is used when reporting errors. | Nodes/InterchangeBaseNode.h |
|
FString GetUniqueID() |
Return the unique ID passed in the constructor. | Nodes/InterchangeBaseNode.h |
|
bool GetVector2Attribute
(
const FString& NodeAttributeKey, |
Get a Vector2 attribute from this node. Returns false if the attribute does not exist. | Nodes/InterchangeBaseNode.h |
|
virtual bool HasAttribute
(
const UE::Interchange::FAttributeKey& NodeAttributeKey |
Return true if the node contains an attribute with the specified Key. | Nodes/InterchangeBaseNode.h | |
void InitializeNode
(
const FString& UniqueID, |
Initialize the base data of the node. | Nodes/InterchangeBaseNode.h |
|
bool IsEnabled () |
If true, the node is imported or exported. | Nodes/InterchangeBaseNode.h |
|
UE::Interchange::FAttributeStorage::TAttributeHandle< T > RegisterAttribute
(
const UE::Interchange::FAttributeKey& NodeAttributeKey, |
Add an attribute to the node. | Nodes/InterchangeBaseNode.h | |
bool RemoveAttribute
(
const FString& NodeAttributeKey |
Remove the specified attribute from this node. | Nodes/InterchangeBaseNode.h |
|
bool RemoveTargetNodeUid
(
const FString& AssetUid |
Remove an asset node UID relating to this object. | Nodes/InterchangeBaseNode.h |
|
virtual bool SetAssetName
(
const FString& AssetName |
Set the name for the imported asset this node represents. | Nodes/InterchangeBaseNode.h |
|
bool SetAttribute
(
const FString& NodeAttributeKey, |
Nodes/InterchangeBaseNode.h | ||
bool SetDisplayLabel
(
const FString& InDisplayLabel |
Change the display label. | Nodes/InterchangeBaseNode.h |
|
bool SetEnabled
(
const bool bIsEnabled |
Determine whether this node should be part of the import or export process. | Nodes/InterchangeBaseNode.h |
|
virtual bool ShouldHideAttribute
(
const UE::Interchange::FAttributeKey& NodeAttributeKey |
UI that inspects node attributes calls this to display or hide an attribute. | Nodes/InterchangeBaseNode.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
FArchive& Ar |
Serialize the node. By default, only the attribute storage is serialized for a node. | Nodes/InterchangeBaseNode.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool SetDesiredChildIndex
(
const int32& ChildIndex |
Set the desired child index. Only the container should set the desired child index | Nodes/InterchangeBaseNode.h | |
bool SetNamespace
(
const FString& InNamespace |
Return true if the Namespace attribute is added, false otherwise. | Nodes/InterchangeBaseNode.h | |
bool SetParentUid
(
const FString& ParentUid |
Set the parent unique ID. | Nodes/InterchangeBaseNode.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void CompareNodeStorage
(
const UInterchangeBaseNode* NodeA, |
Nodes/InterchangeBaseNode.h | ||
static void CopyStorage
(
const UInterchangeBaseNode* SourceNode, |
Nodes/InterchangeBaseNode.h | ||
static void CopyStorageAttributes
(
const UInterchangeBaseNode* SourceNode, |
Nodes/InterchangeBaseNode.h | ||
static void CopyStorageAttributes
(
const UInterchangeBaseNode* SourceNode, |
Nodes/InterchangeBaseNode.h | ||
static void CopyStorageAttributes
(
const UE::Interchange::FAttributeStorage& SourceStorage, |
Nodes/InterchangeBaseNode.h | ||
static void CopyStorageAttributes
(
const UInterchangeBaseNode* SourceNode, |
Nodes/InterchangeBaseNode.h | ||
static FString InvalidNodeUid() |
Return the invalid unique ID. | Nodes/InterchangeBaseNode.h |