FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/examples/asset_metadata_tag.py at master · Nephelend/UnrealEnginePython · GitHub
Nephelend
UnrealEnginePython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
examples
/
asset_metadata_tag.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (15 loc) · 568 Bytes
Breadcrumbs
UnrealEnginePython
/
examples
/
asset_metadata_tag.py
Copy path
File metadata and controls
19 lines (15 loc) · 568 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
import
unreal_engine
as
ue
from
unreal_engine
.
classes
import
EditorAssetLibrary
asset
=
ue
.
get_selected_assets
()[
0
]
# reflection-based api
EditorAssetLibrary
.
SetMetadataTag
(
asset
,
'Foo'
,
'Bar'
)
for
value
in
EditorAssetLibrary
.
GetMetadataTagValues
(
asset
):
print
(
value
)
print
(
EditorAssetLibrary
.
GetMetadataTag
(
asset
,
'Foo'
))
# native api
asset
.
set_metadata_tag
(
'Test001'
,
'Text002'
)
asset
.
set_metadata_tag
(
'Test003'
,
'Text004'
)
for
key
in
asset
.
metadata_tags
():
print
(
key
)
print
(
asset
.
has_metadata_tag
(
'Foo'
))
# bool
print
(
asset
.
get_metadata_tag
(
'Test001'
))
Back
|
FazBrowse Home
|
New Git URL