We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b8ef7e commit dcd640fCopy full SHA for dcd640f
examples/register_new_native_component.py
@@ -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