Problem with Lightmapper fromSriptWiki

Hello Everyone!

I’m having a problem with the Lightmapper from the Script-Wiki:

http://www.unifycommunity.com/wiki/index.php?title=PixelLightMapper

Running the wizard I always get:

NullReferenceExeption
PixelLightMapper.OnWizardCreate () (at Assets/Editor/PixelLightMapper.cs:42)

Does anyone have an idea?

Greets Jens :smile:

What’s on line 42? Can you paste the whole stacktrace from the exception?

Muriac, thanks for the reply! :smile:

I have made a .png of the stript with the errror-message.
I of course have a lightmap attached to the material that I use,
so, I don’t know why I get thise error-message here.
In the Log I get :

NullReferenceExeption
PixelLightMapper.OnWizardCreate () (at Assets/Editor/PixelLightMapper.cs:42)

And the script is like this: