Skip to content

Commit 18cae72

Browse files
author
rdeioris
authored
Update ManagingAssets.md
1 parent 2018259 commit 18cae72

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/ManagingAssets.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,17 @@ particle_system.save_package('/Game/Funny')
187187
material.save_package('/Game/Funny')
188188
```
189189

190+
Using a factory allows to create empty assets:
190191

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

Comments
 (0)