Is it possible to turn off the lightmaps at runtime? Possibly by using a renderer.lightmapIndex array, enabling or disabling it? Has anyone done this and have an example or starting point? Thanks.
I did it the other way around. I assigned a lightmap index at runtime which works. According to the documentation, you just need to set the index to 255 in order to have no lightmap on the renderer.
how do you know what the renderers lightmap index will be? I would think you would need to save the values, set them all to 255, than restore the values. Can you post an example? Thanks again.
I assign lightmap indices in one of the example scenes of the Decal System. When a decal is projected onto a certain mesh, the decal just takes the lightmap index from the mesh renderer onto which it is projected.
I won’t implement the script for you! If you have trouble with the script, post what you already have and explain what is not working. Then I will help you.