From 18cae723a887d787d4cba714c2c5d0af751eecbb Mon Sep 17 00:00:00 2001 From: rdeioris Date: Tue, 17 Jan 2017 19:17:15 +0100 Subject: [PATCH] Update ManagingAssets.md --- docs/ManagingAssets.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/ManagingAssets.md b/docs/ManagingAssets.md index 773eab6a5..9adde8563 100644 --- a/docs/ManagingAssets.md +++ b/docs/ManagingAssets.md @@ -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') +```