Skip to content

Commit 23b4518

Browse files
author
Roberto De Ioris
committed
added map example
1 parent bc4325c commit 23b4518

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/blueprint_variables.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unreal_engine as ue
22

3-
from unreal_engine.classes import Material, BlueprintFactory, Blueprint, Actor, Texture2D
4-
from unreal_engine.structs import EdGraphPinType, Vector, Rotator
3+
from unreal_engine.classes import Material, BlueprintFactory, Blueprint, Actor, Texture2D, SkeletalMesh
4+
from unreal_engine.structs import EdGraphPinType, Vector, Rotator, EdGraphTerminalType
55
from unreal_engine.enums import EPinContainerType
66

77
import time
@@ -20,4 +20,7 @@
2020
pin = EdGraphPinType(PinCategory='struct',PinSubCategoryObject=Rotator,ContainerType=EPinContainerType.Array)
2121
ue.blueprint_add_member_variable(bp, 'TestRotator', pin)
2222

23+
pin = EdGraphPinType(PinCategory='string',ContainerType=EPinContainerType.Map,PinValueType=EdGraphTerminalType(TerminalCategory='object',TerminalSubCategoryObject=SkeletalMesh))
24+
ue.blueprint_add_member_variable(bp, 'TestMap', pin)
25+
2326
ue.open_editor_for_asset(bp)

0 commit comments

Comments
 (0)