FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/examples/register_new_native_component.py at master · brieder/UnrealEnginePython · GitHub
brieder
UnrealEnginePython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
examples
/
register_new_native_component.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (11 loc) · 447 Bytes
Breadcrumbs
UnrealEnginePython
/
examples
/
register_new_native_component.py
Copy path
File metadata and controls
15 lines (11 loc) · 447 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
unreal_engine
as
ue
from
unreal_engine
.
classes
import
ActorComponent
class
FooComponent
(
ActorComponent
):
def
__init__
(
self
):
ue
.
log
(
'Ctor'
)
def
DoSomething
():
ue
.
print_string
(
'TEST !!!'
)
FooComponent
.
set_metadata
(
'BlueprintType'
,
'true'
)
FooComponent
.
set_metadata
(
'BlueprintSpawnableComponent'
,
'true'
)
FooComponent
.
set_metadata
(
'IsBlueprintBase'
,
'true'
)
FooComponent
.
component_type_registry_invalidate_class
()
Back
|
FazBrowse Home
|
New Git URL