#Object always return null after instantiation.

1 messages · Page 1 of 1 (latest)

broken mural
#

what's the broader context of the code?

#

because just the code you linked should work

#

which means there's probably something else

last wraith
#

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

dusk verge
#

show more code