Skip to content

Commit dcd640f

Browse files
author
Roberto De Ioris
committed
added example for native components
1 parent 9b8ef7e commit dcd640f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import unreal_engine as ue
2+
from unreal_engine.classes import ActorComponent
3+
4+
5+
class FooComponent(ActorComponent):
6+
def __init__(self):
7+
ue.log('Ctor')
8+
9+
def DoSomething():
10+
ue.print_string('TEST !!!')
11+
12+
FooComponent.set_metadata('BlueprintType', 'true')
13+
FooComponent.set_metadata('BlueprintSpawnableComponent', 'true')
14+
FooComponent.set_metadata('IsBlueprintBase', 'true')
15+
FooComponent.component_type_registry_invalidate_class()

0 commit comments

Comments
 (0)