Add to Asset Database
Overview
![](https://docs.incari.com/~gitbook/image?url=https%3A%2F%2F2561100106-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff6JZovzOqBctA4C1o76u%252Fuploads%252Fgit-blob-5fb587e8642603e4a73969c736deb21f72399569%252Fnode-add-asset-to-database.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=6a905371&sv=1)
The Add To Asset Database Node adds an Asset to the Asset Database.
If the Asset given as input is already in the Asset Database, the Node simply returns the corresponding AssetID.
The Node includes an On Error
Output Pulse which gets triggered if there was an error adding the Asset to the Asset Database. For example, this will get triggered if an invalid path is given as input.
Scope: Scene, Function, Prefab.
Inputs
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard Input Pulse, to trigger the execution of the Node. |
| String | Path to the file to be added to the Asset Database. |
Outputs
Output | Type | Description |
---|---|---|
Pulse Output (►) | Pulse | A standard Output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution. |
| Any | ID of the Asset added to the Asset Database. This can then be converted to the corresponding Data Type depending on the Type of the Asset. |
| Pulse | Pulse that gets triggered when an error occurred and the Asset could not be added to the Asset Database. |
See Also
Last updated