Skip to content

Commit 04f134b

Browse files
author
rdeioris
authored
Update ManagingAssets.md
1 parent c2f7fc8 commit 04f134b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/ManagingAssets.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,19 @@ asset002 = ue.import_asset('/Users/FooBar/Desktop/warrior001.fbx', '/Game/Meshes
121121
```
122122

123123
Note that FbxFactory is the default importer for fbx, but it will trigger a dialog. For automating tasks a better factory would be the included PyFbxFactory
124+
125+
```py
126+
from unreal_engine.classes import PyFbxFactory
127+
asset002 = ue.import_asset('/Users/FooBar/Desktop/warrior001.fbx', '/Game/Meshes', PyFbxFactory)
128+
```
129+
130+
If the factory supports options, you can instantiate a factory before use:
131+
132+
```py
133+
from unreal_engine.classes import PyFbxFactory
134+
135+
factory = PyFbxFactory()
136+
factory.ImportUI.bImportAsSkeletal = True
137+
138+
asset002 = ue.import_asset('/Users/FooBar/Desktop/warrior001.fbx', '/Game/Meshes', factory)
139+
```

0 commit comments

Comments
 (0)