FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/examples/fasset_data_thumbnails.py at master · SlayerLeon/UnrealEnginePython · GitHub
SlayerLeon
UnrealEnginePython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
examples
/
fasset_data_thumbnails.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (13 loc) · 720 Bytes
Breadcrumbs
UnrealEnginePython
/
examples
/
fasset_data_thumbnails.py
Copy path
File metadata and controls
15 lines (13 loc) · 720 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
import
FARFilter
_filter
=
FARFilter
()
_filter
.
class_names
=
[
'StaticMesh'
]
# when passing True to the second argument of get_assets_by_filter(), you will get FAssetData instead of UObject
for
asset_data
in
ue
.
get_assets_by_filter
(
_filter
,
True
):
has_custom_thumbnail
=
asset_data
.
has_custom_thumbnail
()
has_cached_thumbnail
=
asset_data
.
has_cached_thumbnail
()
try
:
thumbnail
=
asset_data
.
get_thumbnail
()
except
:
thumbnail
=
None
ue
.
log
(
'Asset: {0} Loaded: {1} CustomThumbnail: {2} CachedThumbnail: {3} Thumbnail: {4}'
.
format
(
asset_data
.
object_path
,
asset_data
.
is_asset_loaded
(),
has_custom_thumbnail
,
has_cached_thumbnail
,
thumbnail
))
Back
|
FazBrowse Home
|
New Git URL