I have an exterior scene with many 100’s of objects. Right now some of the renderers use Light Probes and some use Lightmaps. I’d like to switch them all to be consistent to make lighting more consistent. Is there a way to change hundreds at once or would I have to go into each object and change the lighting? I don’t see an obvious way to select those objects and do multi-object editing. I guess what I’m looking for is to select a large number and set Recieve Global Illumination to Lightmaps and have that ignored if the object doesnt have a Mesh Renderer, or a way to select every object with a Mesh Renderer.
This can be easily done with editor script (put in Scripts/Editor folder). For example
using UnityEngine;
using UnityEditor;
public static class CustomSelector
{
[MenuItem("Tools/Select Mesh Renderers")]
static void SelectMeshRenderers()
{
Selection.objects = Object.FindObjectsOfType<MeshRenderer>();
}
}
Compile and access from Tools menu.
1 Like