| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent aa02da9 commit bc4325c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,23 @@ | |||
| 1 | + import unreal_engine as ue | ||
| 2 | + | ||
| 3 | + from unreal_engine.classes import Material, BlueprintFactory, Blueprint, Actor, Texture2D | ||
| 4 | + from unreal_engine.structs import EdGraphPinType, Vector, Rotator | ||
| 5 | + from unreal_engine.enums import EPinContainerType | ||
| 6 | + | ||
| 7 | + import time | ||
| 8 | + | ||
| 9 | + bp = ue.create_blueprint(Actor, '/Game/FooActor' + str(int(time.time()))) | ||
| 10 | + | ||
| 11 | + pin = EdGraphPinType(PinCategory='object', PinSubCategoryObject=Material) | ||
| 12 | + ue.blueprint_add_member_variable(bp, 'TestMat', pin) | ||
| 13 | + | ||
| 14 | + pin = EdGraphPinType(PinCategory='class', PinSubCategoryObject=Texture2D) | ||
| 15 | + ue.blueprint_add_member_variable(bp, 'TestTextureClass', pin) | ||
| 16 | + | ||
| 17 | + pin = EdGraphPinType(PinCategory='struct',PinSubCategoryObject=Vector) | ||
| 18 | + ue.blueprint_add_member_variable(bp, 'TestVector', pin) | ||
| 19 | + | ||
| 20 | + pin = EdGraphPinType(PinCategory='struct',PinSubCategoryObject=Rotator,ContainerType=EPinContainerType.Array) | ||
| 21 | + ue.blueprint_add_member_variable(bp, 'TestRotator', pin) | ||
| 22 | + | ||
| 23 | + ue.open_editor_for_asset(bp) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments