Question by
bluekingdom · Feb 19, 2016 at 01:43 PM ·
unity 5lightprobes
return "null" when I new a LightProbes object
In unity5, I want to new a LightProbes object and then assign to LightmapSettings.lightProbes. Code like this:
var lightProbes = new LightProbes();
lightProbes.bakedProbes = bakedProbes;
LightmapSettings.lightProbes = lightProbes;
However, line 2 throw a error because lightProbes is "null" !!!
I don't know the reason, can someone help me .....
Comment
Your answer
Follow this Question
Related Questions
Multiple objects deleted after one another 0 Answers
All metafiles regenerate and all reference gets lost 0 Answers
Cant import uv image texture to unity 1 Answer
Why when i change the transparency of a prefab in runtime it change the prefab permanently?! 1 Answer
Rolling Animation Problem 0 Answers