FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/examples/get_windows.py at master · dfb/UnrealEnginePython · GitHub
dfb
UnrealEnginePython
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
examples
/
get_windows.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (23 loc) · 852 Bytes
Breadcrumbs
UnrealEnginePython
/
examples
/
get_windows.py
Copy path
File metadata and controls
28 lines (23 loc) · 852 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
16
17
18
19
20
21
22
23
24
25
26
27
28
import
unreal_engine
as
ue
from
unreal_engine
import
FSlateApplication
from
unreal_engine
.
classes
import
GameViewportClient
def
iterate_window
(
window
):
print
(
window
.
get_title
())
for
child
in
window
.
get_child_windows
():
iterate_window
(
child
)
# get the active top level window
top_window
=
FSlateApplication
.
get_active_top_level_window
()
iterate_window
(
top_window
)
# get Game GameViewportClient
try
:
iterate_window
(
ue
.
get_game_viewport_client
().
game_viewport_client_get_window
())
except
:
pass
# get PIE GameViewportClient
try
:
iterate_window
(
ue
.
get_editor_pie_game_viewport_client
().
game_viewport_client_get_window
())
except
:
pass
# iterate all GameViewportClient uobject's
for
game_viewport_client
in
ue
.
tobject_iterator
(
GameViewportClient
):
iterate_window
(
game_viewport_client
.
game_viewport_client_get_window
())
Back
|
FazBrowse Home
|
New Git URL