Ayfel / PrefabLightmapping

Script for saving lightmapping data to prefabs. Used through the Assets tab in Unity. Place your prefbas in the scene with this script at the root. Set up your lighting and in the editor go to Assets->Bake Prefab Lightmaps. After is processed you can now spawn your prefabs in different scenes and they will use the lightmapping from the original scene.
624 stars 89 forks source link

Compilation Error on new project #13

Closed farwest912 closed 4 years ago

farwest912 commented 4 years ago

Hi Ayfel, there are these two errors thrown in Unity Console, I will appreciate if you can offer a fix, thanks. Because I am a designer not good at coding, I couldn't fix myself.

Assets/Scripts/PrefabLightmapData.cs(72,107): error CS1525: Unexpected symbol `,', expecting `('
Assets/Scripts/PrefabLightmapData.cs(73,105): error CS1525: Unexpected symbol `,', expecting `('
Ayfel commented 4 years ago

Mmm, I just imported the script into a new project and it compiles fine. What version of Unity are you using? Can you delete the script and download it again just in case?

farwest912 commented 4 years ago

I use Unity 2017.4.40 now. Unfortunately result is same, it throws same errors. :/

Ayfel commented 4 years ago

Is this a brand new project?

farwest912 commented 4 years ago

No, It is my work project (60 GB) without errors.

Now I tried the script in a new project and it throws same error unfortunately.

Ayfel commented 4 years ago

Ok I figured it out, its because of an older version of .Net, give me a min to get a more general version that's backwards compatible

farwest912 commented 4 years ago

Thanks, I will be checking for updates.

Ayfel commented 4 years ago

It's updated and tested on 2017.4.40 : )

farwest912 commented 4 years ago

Thanks for the "2017 compatibility edition", I appreciate it very much.