Navigation
BlueprintAPI > BlueprintAPI/USD
Returns the cached UObject of the provided Class for the provided Hash if one exists.
Otherwise, finds a new package for it on the cache's AssetDirectory and creates the asset
via a NewObject
WARNING: As this may try loading a package from disk or call NewObject, this can only be called from the game thread!
Target is USD Asset Cache
Inputs
| Type | Name | Description |
|---|---|---|
| exec | In | |
| object | Target | |
| string | Hash | The string key to check with |
| class | Class | The class of the object that we want to retrieve or create from the asset cache |
| string | Desired Name | The name we want the created object to have (the actual name may have additional suffixes) |
| integer | Desired Flags | The flags we want the created object to have (the actual applied flags may differ depending on context) |
| object | Referencer | The asset will not be deleted or untracked until this referencer is removed (via any of the RemoveAssetReferencer member functions) |
Outputs
| Type | Name | Description |
|---|---|---|
| exec | Out | |
| boolean | Out Created Asset | Set to true if we created the asset that was return, but false if we returned an existing asset |
| object | Return Value | The asset that was returned or created |