Skip to content

Commit c5a9aa9

Browse files
author
rdeioris
authored
Update ManagingAssets.md
1 parent 5801a20 commit c5a9aa9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/ManagingAssets.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,22 @@ will remove the /Game/NewMaterials/Mat001.FooBarUpdated asset
9494

9595
Importing Assets
9696
-
97+
98+
This is probably the most important feature for task automation. It allows you to import an external resource (like textures, meshes, animation ...) into the editor.
99+
100+
To import a file in an asset folder:
101+
102+
```py
103+
asset = ue.import_asset('/Users/FooBar/Desktop/texture001.png', '/Game/Textures')
104+
```
105+
106+
this will result in the texture001 asset in the /Game/Textures folder
107+
108+
You can even import multiple assets in a single round:
109+
110+
```py
111+
files_to_import = ['/Users/FooBar/Desktop/texture001.png', '/Users/FooBar/Desktop/texture002.png', '/Users/FooBar/Desktop/texture001.png', '/Users/FooBar/Desktop/texture003,png']
112+
asset = ue.import_asset(files_to_import, '/Game/Textures')
113+
```
114+
115+

0 commit comments

Comments
 (0)