Skip to content

Commit cc79ae7

Browse files
author
rdeioris
authored
Update graphs_creator.py
1 parent 6fbb5a1 commit cc79ae7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎examples/graphs_creator.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import unreal_engine as ue
22
from unreal_engine.classes import K2Node_InputKey, K2Node_SpawnActorFromClass, Actor, Character, KismetMathLibrary
3+
from unreal_engine.structs import Key
34

45
# create a new blueprint
56
new_blueprint = ue.create_blueprint(Actor, '/Game/StrangeBlueprint')
@@ -44,8 +45,7 @@
4445
make_transform.node_find_pin('ReturnValue').make_link_to(spawn_actor_node.node_find_pin('SpawnTransform'))
4546

4647
input_key = K2Node_InputKey()
47-
# TODO implement the FKey struct
48-
#input_key.InputKey = ???
48+
input_key.InputKey = Key(KeyName='SpaceBar')
4949
input_key_node = uber_page.graph_add_node(input_key, 400, 400)
5050

5151
# compile the blueprint

0 commit comments

Comments
 (0)