modify lightmap res
code:python
import unreal
desired_lightmap_resolution = 8
editor_level = unreal.EditorLevelLibrary.get_editor_world()
static_mesh_actors = unreal.GameplayStatics.get_all_actors_of_class(editor_level, unreal.StaticMeshActor)
for actor in static_mesh_actors:
static_mesh_component = actor.get_component_by_class(unreal.StaticMeshComponent)
if static_mesh_component:
static_mesh_component.set_editor_property('override_light_map_res', True)
static_mesh_component.set_editor_property('overridden_light_map_res', desired_lightmap_resolution)
print("ライトマップ解像度の設定が完了しました。")