Terrain.Light property removed?

I have been trying to learn more about Unity's terrain system since I am working on a server project that needs quite a bit of terrain. I have been working on my own custom solution but thought I should stop and check out what is in place before I get too far. Most of what I have read says that the Unity terrain system is too inefficient to use in an online game, but I see Fusion Fall has done it.

After some time searching I cam across the Streaming World Demo provided in one of the answers awhile back. I fixed several of the little errors I came across but I was unable to reset the lighting information. Terrain.Light use to point to a enumerator that specified the type of lighting used. I can still see the information on the Unity Reference Scripts but unfortunately I don't think it is being used anymore.

So my two questions are: 1)What is the equivalent or a way to set the lighting on terrain generated through code? 2)Is there a more up to date version of the streaming worlds example that I should be looking at than the one I have?

1 Reply

It was possible to switch between lightmapping and pixel lighting on Terrain before Unity 3.0 as far as I can remember. It is now fully integrated with the Beast lightmapping and other dynamic lights, Terrain.light is only targeted at a light component if you've added one to the terrain object, it's not relevant though.