Create Atlas with sprites and ensure that Create Sprites actually creates the sprites.  In order to use scripts directly in Unity you need a file called gmcs.rsp with the line "-unsafe" at the top of the file to run the unsafe code.