Skip to content

Lighting

4 tools for lighting quality, rendering settings, shader info and reflection captures.

Back to the index.

get_lighting_quality

Read-only

Read-only census of every light component in the editor world (the editor level, even while Play-in-Editor runs), sky lights included, an actor with several counting each: counts by type (sky_light_count among them) and mobility, shadow-casting and world-affecting counts, intensity total/average/min/max over all of them (a sky light's intensity is its scale), one light_details entry per component, plus r.LightingQuality and r.DynamicLighting. lighting_quality_score (0 to 1) and its rating are a heuristic of light count, shadow casters and type variety, not a measure of built lighting; nothing is built. For one light use get_properties on its light component, for lights near a point get_lighting_in_area.

No parameters.

Returns: { level_name, lighting_quality_found, lighting_quality_message, lighting_quality, lighting_type, lighting_enabled, light_name, light_class, light_component, light_component_class, light_intensity, light_enabled, light_cast_shadows, light_affect_world, light_mobility, x, y, z, r, g, b, a, light_count, directional_light_count, point_light_count, spot_light_count, rect_light_count, sky_light_count, static_light_count, stationary_light_count, movable_light_count, shadow_casting_light_count, world_affecting_light_count, total_intensity, average_intensity, max_intensity, min_intensity, light_details, lighting_quality_score, lighting_quality_rating } -- light_name and light_class are the owning actor's, light_component and light_component_class the component's

get_rendering_settings

Read-only

Read a one-call summary of how the editor renders right now: the RHI in use (rendering_api), forward or deferred mode (r.ForwardShading), a quality bucket of r.ScreenPercentage (rendering_quality), a quality verdict from r.MaterialQualityLevel and r.ViewDistanceScale, shadow resolutions, renderer feature switches each from its console variable (left out when the build lacks it), display settings from the game user settings (the ? fields, left out without them), engine version, and a census of the engine's first world context, normally the editor level (world_* fields, left out with no world). Use it for an overview; for exact values read one variable with get_cvar, scalability groups with get_scalability_levels, lights with get_lighting_quality, shading and materials with get_shader_info; change them with set_cvar or set_scalability_quality. Read-only and idempotent. rendering_settings_found is always true; platform_architecture and platform_os are fixed strings, and rendering_recommendations is a heuristic of actor counts.

No parameters.

Returns: { rendering_settings_found, rendering_settings_message, rendering_quality, rendering_api, rendering_enabled, rendering_mode, world_name, world_type, world_lighting_enabled, world_shadows_enabled, world_fog_enabled, world_atmosphere_enabled, world_max_tick_rate, world_delta_seconds, world_time_seconds, world_real_time_seconds, world_level_count, world_persistent_level, world_actor_count, world_light_actor_count, world_static_mesh_actor_count, world_skeletal_mesh_actor_count, world_camera_actor_count, world_post_process_actor_count, engine_version, platform_name, platform_architecture, platform_os, view_distance_scale, max_shadow_resolution, max_csm_shadow_resolution, rendering_shadows_enabled, rendering_fog_enabled, rendering_atmosphere_enabled, rendering_anti_aliasing_enabled, rendering_motion_blur_enabled, rendering_depth_of_field_enabled, rendering_ambient_occlusion_enabled, rendering_global_illumination_enabled (each from its console variable), rendering_quality_level, rendering_quality_preset, rendering_quality_auto, rendering_quality_score, rendering_vsync_enabled?, rendering_screen_percentage, rendering_resolution_x?, rendering_resolution_y?, rendering_frame_rate_limit?, rendering_resolution_scale, rendering_recommendations } -- rendering_api is the RHI in use; world_*_enabled say what the world contains (a light, a shadow caster, a height fog, a sky atmosphere)

get_shader_info

Read-only

Read the shading setup the editor runs with, from console variables and the RHI, plus a census of the engine's first world context (normally the editor level); nothing is changed or compiled. shader_type is forward or deferred (r.ForwardShading), shader_api the RHI in use, shader_quality the r.MaterialQualityLevel level; each shader_*_enabled switch, vsync, frame-rate limit and screen percentage comes from its console variable and is omitted when the build lacks it, while shaders_enabled, shader_quality_auto and the platform architecture and OS are fixed. World counts are of actors owning a static mesh, skeletal mesh, light or FX component, plus post-process volumes; material_details lists each distinct material on their first mesh components. The complexity score, rating and recommendations are a heuristic of those counts, not a shader measurement. Renderer summary: get_rendering_settings; lights: get_lighting_quality; one variable: get_cvar.

No parameters.

Returns: { shader_info_found, shader_info_message, shader_type, shader_quality, shaders_enabled, shader_api, world_name, world_material_count, world_static_mesh_count, world_skeletal_mesh_count, world_light_count, world_post_process_count, world_particle_system_count, material_details: [{ material_name, material_class, material_path, material_is_material, material_is_material_instance, material_is_dynamic_material_instance, material_scalar_parameter_count, material_vector_parameter_count, material_texture_parameter_count, material_total_parameter_count }], engine_version, platform_name, platform_architecture, platform_os, shader_quality_level, shader_quality_preset, shader_quality_auto, shader_quality_score, shader_forward_shading_enabled, shader_deferred_shading_enabled, shader_shadows_enabled, shader_fog_enabled, shader_atmosphere_enabled, shader_anti_aliasing_enabled, shader_motion_blur_enabled, shader_depth_of_field_enabled, shader_ambient_occlusion_enabled, shader_global_illumination_enabled, shader_vsync_enabled, shader_frame_rate_limit, shader_screen_percentage, shader_resolution_scale (each read from its console variable; left out when the build lacks it), shader_recommendations, shader_complexity_score, shader_complexity_rating }

rebuild_reflection_captures

Destructive

Recapture every Sphere and Box reflection capture of the editor world now, as the editor does after a capture moves, so reflections show changes made to the scene (new meshes, lights, materials). Use it after placing a capture with spawn_actor (type SphereReflectionCapture or BoxReflectionCapture) or changing one with set_properties (its ReflectionCaptureComponent), or after editing the scene around a capture; read one back with get_properties on its capture component; a full static lighting build is build_lighting, which also rebuilds captures. Every capture of the world is redone, which takes longer the more captures there are; there is no per-capture option. It saves nothing and is no undo step: save_level keeps the result. Under -NullRHI (headless) nothing is rendered, so the captures do not change. updated is always true; capture_count is how many captures it found (0 when the world has none, which is not an error).

No parameters.

Returns: { updated: bool, capture_count: number }