Choose your operating system:
Windows
macOS
Linux
| TSharedFromThis
|
Module |
|
Header |
/Engine/Plugins/Enterprise/DatasmithImporter/Source/ExternalSource/Public/ExternalSource.h |
Include |
#include "ExternalSource.h" |
class FExternalSource : public TSharedFromThis< FExternalSource >
Class allowing to load a IDatasmithScene from a source URI.
Name | Description | ||
---|---|---|---|
|
OnExternalSourceChanged |
Delegate called on main thread every time the loaded data is updated. |
Name | Description | |
---|---|---|
|
FExternalSource ( |
Name | Description | |
---|---|---|
|
~FExternalSource() |
Name | Description | ||
---|---|---|---|
|
AsyncLoad() |
Load the external source asynchronously, the returned TFuture gives a valid IDatasmithSceneTSharedPtr if successful. |
|
|
CancelAsyncLoad() |
Cancel any pending AsyncLoad() operation, pending TFuture will return invalid TSharedPtr. |
|
|
ClearOnExternalSourceLoadedDelegates() |
Interrupt async task notification and clear all registered delegates. |
|
|
const TShare... |
GetAssetTranslator() |
DISCLAIMER: The translator is exposed here as a temporary workaround in order to set the import option before the load and load assets with bulk data (StaticMeshes/LoadLevelSequence/etc.). |
|
FExternalSou... |
GetCapabilities() |
|
|
TSharedPtr< ... |
GetDatasmithScene() |
Return the DatasmithScene if it is loaded, return an invalid TSharedPtr otherwise. |
|
GetFallbackFilepath() |
As long as UFactory does not offer a way to import FExternalSource directly, we must rely on using filepaths, even for source that are not on the file system. |
|
|
GetSceneName() |
Return the name of the scene that will be loaded. |
|
|
GetSourceHash() |
Gives the hash of the source, only returns a valid hash after loading the scene. |
|
|
GetSourceName() |
||
|
const FSourc... |
GetSourceUri() |
|
|
IsAsyncLoading() |
True when the ExternalSource is currently loading the source asynchronously. |
|
|
IsAvailable() |
Return true if the resource pointed by this ExternalSource is available for being loaded. |
|
|
IsOutOfSync() |
Return true if the loaded scene is out-of-sync and needs to be reloaded. |
|
|
TSharedPtr< ... |
Load() |
Load the external source and return a valid IDatasmithSceneTSharedPtr if successful. |
|
TSharedPtr< ... |
LoadImpl() |
Synchronously load the DatasmithScene. |
|
SetSceneName ( |
Override the name of the scene that will be loaded. |
|
|
StartAsyncLoad() |
Starts an async task for loading the DatasmithScene. |
|
|
TriggerOnExternalSourceChanged() |
Broadcast OnExternalSourceChanged delegates and set pending TPromises. |
|
|
TSharedPtr< ... |
TryLoad() |
Attempt to load the FExternalSource according to its supported capabilities. |
Name |
Description |
---|---|
FOptionalScenePromise |