Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

LightProbeUsage Returning BlendProbes when Set to Off

Discussion in 'Scripting' started by themdubs, Dec 19, 2019.

  1. themdubs

    themdubs

    Joined:
    Jan 12, 2014
    Posts:
    26
    I'm running into an issue with the LightProbeUsage member variable of Renderer. I'm creating an editor tool that finds all Renderers that have their LightProbeUsage set to BlendProbes. However when looking at some of the objects that it finds I've noticed that the LightProbes option has been set to Off. Like so:

    Some further info. The static function that searches through all the Renderers is being invoked by a GUI button in a custom editor window. I've kept the inspector for one of the objects open when calling the function and confirmed that the value never changes from Off.