|
I'm making a "Beast Helper" script, that save gameobjects list and tiling info for each lightmap, and you can restore it later. Everything seems to work, but I have a problem: LightMapSettings.Lightmaps[] cannot be resized... (The length property is read only). I need to set the number of lightmaps from script, otherwise my script can cause Out of index errors when trying to set a number of lightmaps bigger than LightMapSettings.Lightmaps.Length... Any ideas?? Thanks
(comments are locked)
|
|
Store the array reference in a temporary variable, resize it (Array.Resize - you can't modify .Length in a normal array either), then push it back into the variable In c# it'd look something like this: Thanks for the quick response, I will test it now...
Sep 28 '10 at 12:48 PM
user-710 (google)
(comments are locked)
|
