#Thread

1 messages · Page 1 of 1 (latest)

weak trail
#

so "main" is null. Probably because your awake function is grayed out on GameOver. Why is it grayed out? What's the warning on it?

#

Awake being private shouldn't cause it to be grayed out and have a warning

#

@noble smelt let's go to a thread so it doesn't clutter up the chat, a lot of ppl r asking questions

#

can you just hover over Awake and tell me what it says?

noble smelt
#

hmm

weak trail
#

yea that's weird

#

mine doesn't do that

noble smelt
#

huh.

weak trail
#

can you open your package manager?

noble smelt
#

ok

weak trail
noble smelt
weak trail
#

then search "Visual" in the top right (make sure you're searching In Project) and update both of those (you can see mine needs updating too)

#

oh interesting

#

im updating to 2.0.20 rn

#

if it breaks on mine, then it's a bug with 2.0.20

#

no didn't break...

noble smelt
#

huh

weak trail
#

can you put a debug log statement in that awake function to see if it's even being called

noble smelt
#

oki! one sec

weak trail
# noble smelt

@turbid pond you'll probably be more help, i see you're on.

turbid pond
#

don't ping people into questions

weak trail
#

ok, guess he doesn't want to help

noble smelt
#

nope, not being called at all

weak trail
#

it IS attatched to a gameobject, right?

noble smelt
weak trail
noble smelt
#

is it cuz GameOver isnt active

weak trail
#

probably

#

set it to active, then in Start() method set it to inactive if you want it inactive

noble smelt
#

aight

weak trail
#

just see what happens

noble smelt
#

YES IT WORKS!!!

#

epic

weak trail
#

guess it's a visual bug then with your unity version. I wonder why it's doing that, strange.

#

imma close the thread now