#GameObject Reference Exceptions

1 messages · Page 1 of 1 (latest)

tranquil plover
#

Alright, it had everything to do with making the object references singletons.

oblique osprey
#

were you using static variables?

tranquil plover
#

For anyone who encounters the same problem, make sure the references are static references, so that the engine actually pulls from persistent objects. Well, there's probably a better way to explain it.

#

No I wasn't, that ended up being the problem. I should have realized.

oblique osprey
#

FYI that static vars get reset to default value every time you reload domain (enter playmode, reload scripts etc)

tranquil plover
#

Don't worry I accounted for that.