Skip to content

Commit 912e12e

Browse files
author
Roberto De Ioris
authored
Update add_instance_component.py
1 parent 230d009 commit 912e12e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/add_instance_component.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import unreal_engine as ue
22
from unreal_engine.classes import PawnSensingComponent
3-
from unreal_engine.enums import EComponentCreationMethod
43

54
actor = ue.editor_get_selected_actors()[0]
65
component = actor.add_actor_component(PawnSensingComponent, 'Foo')
76
actor.add_instance_component(component)
8-
actor.modify()
7+
actor.modify()

0 commit comments

Comments
 (0)