Component which deals with attaching assets 更多...
#include <PreviewAssetAttachComponent.h>
Public 成员函数 | |
| ENGINE_API void | AddAttachedObject (UObject *AttachObject, FName AttachPointName) |
| Adds the given Name/Object to the PreviewAttachedObjects list. 更多... | |
| ENGINE_API void | AddUniqueAttachedObject (UObject *AttachObject, FName AttachPointName) |
| Adds the given Name/Object uniquely to the PreviewAttachedObjects list. 更多... | |
| ENGINE_API void | ClearAllAttachedObjects () |
| Clears all the preview attached objects | |
| ENGINE_API TConstIterator | CreateConstIterator () const |
| Const iterator creator for AttachedObjects | |
| ENGINE_API TIterator | CreateIterator () |
| Iterator creator for AttachedObjects | |
| ENGINE_API UObject * | GetAttachedObjectByAttachName (FName AttachName) const |
| Grab the asset (if any) attached at the place given 更多... | |
| ENGINE_API int32 | Num () const |
| Returns the number of attached objects | |
| ENGINE_API FPreviewAttachedObjectPair & | operator[] (int32 i) |
| operator [] - pipes through to AttachedObjects | |
| ENGINE_API const FPreviewAttachedObjectPair & | operator[] (int32 i) const |
| operator [] - pipes through to AttachedObjects | |
| ENGINE_API void | RemoveAtSwap (int32 Index, int32 Count=1, bool bAllowShrinking=true) |
| RemoveAtSwap passthrough | |
| ENGINE_API void | RemoveAttachedObject (UObject *ObjectToRemove, FName AttachName) |
| Remove the given object from the attached list 更多... | |
| ENGINE_API void | SaveAttachedObjectsFromDeprecatedProperties () |
| Helper function to fix up attached objects after property deprecation | |
| ENGINE_API int32 | ValidatePreviewAttachedObjects () |
| Helper function to remove invalid attached object references | |
Component which deals with attaching assets
| ENGINE_API void FPreviewAssetAttachContainer::AddAttachedObject | ( | UObject * | AttachObject, |
| FName | AttachPointName | ||
| ) |
Adds the given Name/Object to the PreviewAttachedObjects list.
Allows us to recreate the attached objects later
| AttachObject | The object that is being attached |
| AttachPointName | The place where the object is attached (bone or socket) |
| ENGINE_API 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
| AttachObject | The object that is being attached |
| AttachPointName | The place where the object is attached (bone or socket) |
| ENGINE_API UObject * FPreviewAssetAttachContainer::GetAttachedObjectByAttachName | ( | FName | AttachName | ) | const |
Grab the asset (if any) attached at the place given
| AttachName | The name of the attach point (Bone name or socket name) to look for an asset |
| ENGINE_API void FPreviewAssetAttachContainer::RemoveAttachedObject | ( | UObject * | ObjectToRemove, |
| FName | AttachName | ||
| ) |
Remove the given object from the attached list
| ObjectToRemove | The object that is being removed |