Search Unity

Any way to search the scene for all game objects not set to lightmap static?

Discussion in 'Editor & General Support' started by AleMarcati, Mar 26, 2022.

  1. AleMarcati

    AleMarcati

    Joined:
    Jan 4, 2022
    Posts:
    9
    I want to be able to quickly find all objects in a scene that are not set to lightmap static. Is there a search I can type in the scene search that will give me all GameObjects not set to lightmap static?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,708
  3. sebastiengrenier

    sebastiengrenier

    Unity Technologies

    Joined:
    Jun 11, 2019
    Posts:
    96
    Hi! I know this is a late reply, but for future references you can check the documentation for Search. With Search, you can search your current scene (https://docs.unity3d.com/2022.2/Documentation/Manual/search-scene.html) for objects with different properties. For example, the query
    h: -static=LightmapStatic

    will yield the objects that are not equals to LightmapStatic. However, please note that
    static=LightmapStatic
    means only equal to LightmapStatic, so if other bits are set it will not yield the proper results.