UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPreviewAssetAttachContainer Struct Reference

#include <PreviewAssetAttachComponent.h>

Public Member Functions

ENGINE_API void AddAttachedObject (UObject *AttachObject, FName AttachPointName)
 
ENGINE_API void AddUniqueAttachedObject (UObject *AttachObject, FName AttachPointName)
 
ENGINE_API void RemoveAttachedObject (UObject *ObjectToRemove, FName AttachName)
 
ENGINE_API UObjectGetAttachedObjectByAttachName (FName AttachName) const
 
ENGINE_API void ClearAllAttachedObjects ()
 
ENGINE_API int32 Num () const
 
ENGINE_API FPreviewAttachedObjectPairoperator[] (int32 i)
 
ENGINE_API const FPreviewAttachedObjectPairoperator[] (int32 i) const
 
ENGINE_API TConstIterator CreateConstIterator () const
 
ENGINE_API TIterator CreateIterator ()
 
ENGINE_API void RemoveAtSwap (int32 Index, EAllowShrinking AllowShrinking=EAllowShrinking::Default)
 
ENGINE_API void RemoveAtSwap (int32 Index, int32 Count, EAllowShrinking AllowShrinking=EAllowShrinking::Default)
 
void RemoveAtSwap (int32 Index, int32 Count, bool bAllowShrinking)
 
ENGINE_API void SaveAttachedObjectsFromDeprecatedProperties ()
 
ENGINE_API int32 ValidatePreviewAttachedObjects ()
 

Detailed Description

Component which deals with attaching assets

Member Function Documentation

◆ AddAttachedObject()

void FPreviewAssetAttachContainer::AddAttachedObject ( UObject AttachObject,
FName  AttachPointName 
)

Adds the given Name/Object to the PreviewAttachedObjects list. Allows us to recreate the attached objects later

Parameters
AttachObjectThe object that is being attached
AttachPointNameThe place where the object is attached (bone or socket)

◆ AddUniqueAttachedObject()

void FPreviewAssetAttachContainer::AddUniqueAttachedObject ( UObject AttachObject,
FName  AttachPointName 
)

Adds the given Name/Object uniquely to the PreviewAttachedObjects list. Allows us to recreate the attached objects later

Parameters
AttachObjectThe object that is being attached
AttachPointNameThe place where the object is attached (bone or socket)

◆ ClearAllAttachedObjects()

void FPreviewAssetAttachContainer::ClearAllAttachedObjects ( )

Clears all the preview attached objects

◆ CreateConstIterator()

TConstIterator FPreviewAssetAttachContainer::CreateConstIterator ( ) const

Const iterator creator for AttachedObjects

◆ CreateIterator()

TIterator FPreviewAssetAttachContainer::CreateIterator ( )

Iterator creator for AttachedObjects

◆ GetAttachedObjectByAttachName()

UObject * FPreviewAssetAttachContainer::GetAttachedObjectByAttachName ( FName  AttachName) const

Grab the asset (if any) attached at the place given

Parameters
AttachNameThe name of the attach point (Bone name or socket name) to look for an asset
Returns
UObject or NULL if nothing is attached at that location.

◆ Num()

int32 FPreviewAssetAttachContainer::Num ( ) const

Returns the number of attached objects

◆ operator[]() [1/2]

FPreviewAttachedObjectPair & FPreviewAssetAttachContainer::operator[] ( int32  i)

operator [] - pipes through to AttachedObjects

◆ operator[]() [2/2]

const FPreviewAttachedObjectPair & FPreviewAssetAttachContainer::operator[] ( int32  i) const

operator [] - pipes through to AttachedObjects

◆ RemoveAtSwap() [1/3]

void FPreviewAssetAttachContainer::RemoveAtSwap ( int32  Index,
EAllowShrinking  AllowShrinking = EAllowShrinking::Default 
)

RemoveAtSwap passthrough

◆ RemoveAtSwap() [2/3]

void FPreviewAssetAttachContainer::RemoveAtSwap ( int32  Index,
int32  Count,
bool  bAllowShrinking 
)
inline

◆ RemoveAtSwap() [3/3]

void FPreviewAssetAttachContainer::RemoveAtSwap ( int32  Index,
int32  Count,
EAllowShrinking  AllowShrinking = EAllowShrinking::Default 
)

◆ RemoveAttachedObject()

void FPreviewAssetAttachContainer::RemoveAttachedObject ( UObject ObjectToRemove,
FName  AttachName 
)

Remove the given object from the attached list

Parameters
ObjectToRemoveThe object that is being removed

◆ SaveAttachedObjectsFromDeprecatedProperties()

void FPreviewAssetAttachContainer::SaveAttachedObjectsFromDeprecatedProperties ( )

Helper function to fix up attached objects after property deprecation

◆ ValidatePreviewAttachedObjects()

int32 FPreviewAssetAttachContainer::ValidatePreviewAttachedObjects ( )

Helper function to remove invalid attached object references


The documentation for this struct was generated from the following files: