We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2018259 commit 18cae72Copy full SHA for 18cae72
docs/ManagingAssets.md
@@ -187,4 +187,17 @@ particle_system.save_package('/Game/Funny')
187
material.save_package('/Game/Funny')
188
```
189
190
+Using a factory allows to create empty assets:
191
192
+```py
193
+from unreal_engine.classes import AnimBlueprintFactory
194
+
195
+# get a reference to a skeleton asset (required for anim blueprint)
196
+skeleton = ue.get_asset('/Game/Skeleton.Skeleton001')
197
+anim_blueprint_factory = AnimBlueprintFactory()
198
199
+anim_blueprint_factory.TargetSkeleton = skeleton
200
201
+# create the asset
202
+anim_blueprint = anim_blueprint_factory.factory_create_new('/Game/anim001')
203
+```
0 commit comments