This script works well while in Unity Editor
GameObject obj = new GameObject("MyObject");
MyScript s = obj.AddComponent();
But when calling it in a Android APK it return a Null Pointer Reference error when calling MethodThatInstantiateSomething, at the line where Instantiate() is called.
I’ve completed a bunch of tools for drawing sprites from 2D tiled sheets. This is a cheap toolset (roughly 300 lines of code) and I’m sure there are better ones around, but I find it pretty fast to use in my projects and I will probably use it in my smallest 2D projects. This tool supports pixel perfect sprites and dynamic batching from sprites coming from the same spritesheet.
My tools are licensed under BDS-3 Clause and can be used freely for both free and commercial projects.
You can clone it from BitBucket or GitHub
Or you can download it here:
2DTools (869 downloads)
Look next page for old versions: