Odd
This script works well while in Unity Editor
GameObject obj = new GameObject("MyObject"); MyScript s = obj.AddComponent(); s.MethodThatInstantiateSomething("argument"); 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.
Odd.
Filed under Game Development · PC Nerding · csharp · script · scripts · unity · unity3d