Skip to content

Commit

Permalink
Update ManagingAssets.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris authored Jan 17, 2017
1 parent 2018259 commit 18cae72
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/ManagingAssets.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,17 @@ particle_system.save_package('/Game/Funny')
material.save_package('/Game/Funny')
```

Using a factory allows to create empty assets:

```py
from unreal_engine.classes import AnimBlueprintFactory

# get a reference to a skeleton asset (required for anim blueprint)
skeleton = ue.get_asset('/Game/Skeleton.Skeleton001')
anim_blueprint_factory = AnimBlueprintFactory()

anim_blueprint_factory.TargetSkeleton = skeleton

# create the asset
anim_blueprint = anim_blueprint_factory.factory_create_new('/Game/anim001')
```

0 comments on commit 18cae72

Please sign in to comment.