Skip to content

Commit 7fe93fc

Browse files
author
rdeioris
authored
Update ManagingAssets.md
1 parent c5a9aa9 commit 7fe93fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/ManagingAssets.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,13 @@ You can even import multiple assets in a single round:
109109

110110
```py
111111
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')
112+
assets = ue.import_asset(files_to_import, '/Game/Textures')
113113
```
114114

115+
The previous functions trigger auto-discovery of the UFactory (a factory describes how to load a file, there are factories for each supported file format). If auto-discovery of the right factory fails, you can specify it
115116

117+
```py
118+
from unreal_engine.classes import TextureFactory, FbxFactory
119+
asset001 = ue.import_asset('/Users/FooBar/Desktop/texture001.png', '/Game/Textures', TextureFactory)
120+
asset002 = ue.import_asset('/Users/FooBar/Desktop/warrior001.fbx', '/Game/Meshes', FbxFactory)
121+
```

0 commit comments

Comments
 (0)