FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/examples/add_instance_component.py at pr_array_params · dfb/UnrealEnginePython · GitHub
dfb
UnrealEnginePython
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
examples
/
add_instance_component.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
7 lines (6 loc) · 248 Bytes
Breadcrumbs
UnrealEnginePython
/
examples
/
add_instance_component.py
Copy path
File metadata and controls
7 lines (6 loc) · 248 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
import
unreal_engine
as
ue
from
unreal_engine
.
classes
import
PawnSensingComponent
actor
=
ue
.
editor_get_selected_actors
()[
0
]
component
=
actor
.
add_actor_component
(
PawnSensingComponent
,
'Foo'
)
actor
.
add_instance_component
(
component
)
actor
.
modify
()
Back
|
FazBrowse Home
|
New Git URL