-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28965cf
commit 33752f2
Showing
4 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Python/PyUnreal/PyUnreal/runs_with_editorUtility/components/get_HLOD_enabled.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import unreal | ||
#from typing import List | ||
|
||
world_setting :object = unreal.EditorLevelLibrary.get_editor_world().get_world_settings() | ||
is_HLOD_enabled :bool = world_setting.get_editor_property('enable_hierarchical_lod_system') | ||
|
||
need_to_print :str = 'HLOD enabled = ' + str(is_HLOD_enabled) | ||
|
||
unreal.log_warning(need_to_print) |
16 changes: 16 additions & 0 deletions
16
Python/PyUnreal/PyUnreal/runs_with_editorUtility/components/texture_cutoff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import unreal as ue | ||
from typing import List | ||
|
||
new_size :int | ||
#input from editor | ||
|
||
asset_lib :object = ue.EditorAssetLibrary | ||
util_lib :object = ue.EditorUtilityLibrary | ||
##init | ||
asset_list :List[object] = util_lib.get_selected_assets() | ||
|
||
for each in asset_list : | ||
each.set_editor_property('max_texture_size', new_size) | ||
print(each.get_full_name()) | ||
asset_lib.save_asset(each.get_full_name()) | ||
#asset_lib.save_asset(each) |