Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


lightmapsettings.lightprobes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
lightmapsettings.lightprobes [2021/05/10 17:24]
54.223.89.244 old revision restored (2021/02/09 01:08)
lightmapsettings.lightprobes [2021/05/20 19:24]
54.222.229.69 old revision restored (2021/05/10 18:38)
Line 3: Line 3:
  
 ===== LightmapSettings.lightProbes ===== ===== LightmapSettings.lightProbes =====
 +//Honestly, I'm still fairly fuzzy on how this field works. Here's the best of my knowledge.
 +//
   * The ''LightmapSettings.lightProbes '' stores the light probes //all// scenes currently loaded. It is a single merged array of lightProbes, which is updated whenever a scene is additively loaded or removed.   * The ''LightmapSettings.lightProbes '' stores the light probes //all// scenes currently loaded. It is a single merged array of lightProbes, which is updated whenever a scene is additively loaded or removed.
   * When a scene is unloaded, LightmapSettings.lightProbes will still   * When a scene is unloaded, LightmapSettings.lightProbes will still
Line 10: Line 12:
  
 There is no way to manually specify light probes, as far as I'm aware. The only mutable field on ''LightmapSettings.lightProbes'' are the spherical harmonic values (''LightmapSettings.lightProbes.bakedProbes''). You can blend and modify the lighting values of the probes, but there is no way to fully create new probes at runtime, even if you have the positions and values. Probes cannot be moved at runtime, because the positions array has no setter. There is no way to manually specify light probes, as far as I'm aware. The only mutable field on ''LightmapSettings.lightProbes'' are the spherical harmonic values (''LightmapSettings.lightProbes.bakedProbes''). You can blend and modify the lighting values of the probes, but there is no way to fully create new probes at runtime, even if you have the positions and values. Probes cannot be moved at runtime, because the positions array has no setter.
 +
 +''LightmapSettings.lightProbes'' will be null if there is no valid lighting data in the active scene.
lightmapsettings.lightprobes.txt ยท Last modified: 2023/05/04 14:14 by 86.7.175.132