#Object always return null after instantiation.
1 messages · Page 1 of 1 (latest)
because just the code you linked should work
which means there's probably something else
it just simple like that. No other funtions got executed.
i tried to call a method from that object, for example:
slot.AddItem(item)
it works fine, no error occured. But the object itself always returns null.
I just tried to create a whole new C# project (non-Unity) and reuse the exact same class, it works normal. It might be Unity bug, i think
show more code