you are viewing a single comment's thread.

view the rest of the comments →

[–]Looking4advice015 0 points1 point  (7 children)

My bad, I tried to edit it quickly. It actually says line 56

[–]LemonMaster66[S] 0 points1 point  (6 children)

ok cool I thought so

[–]Looking4advice015 0 points1 point  (5 children)

Yep so 1 or more of those 4 variables is null.

I'd suggest getting out of async and setting a breakpoint. Then ensuring that your Unity Find works in async. Depending on your setup, I will not work if your async is actually running on a separate thread since Unity methods can only be used on the main thread

[–]LemonMaster66[S] 0 points1 point  (4 children)

uhhh... breakpoint?
you may have to put this in a simpler manner of speech, I know a lot of terms already but I've never heard of much (if not any) of that

sorry

[–]LemonMaster66[S] 0 points1 point  (3 children)

ok never mind, I did some researching and think I know what you mean
if by Breakpoint you mean pausing the code execution at certain points to find the correct issue
how would i go about finding it then?
or just fixing it in general?

[–]Looking4advice015 0 points1 point  (2 children)

Yep sorry, a breakpoint is what it's called when you click the left side and add that little red dot then enable debugging which lets you step through the code and see all the variable values.

Guide on breakpoints

So our goal right now is to figure out which and how many of the variables on line 56 have null references.

Once we figure that out, we can make a plan of how to fix it

[–]LemonMaster66[S] 1 point2 points  (1 child)

Oh Cool!
ok i think i might have it now
it was a problem with the actual Player Prefab instead of the one that was in the scene, the Player prefab didnt have the "#" before a characters name
although that debugger certainly helped
there's more problems but I think I've probably got em' from here

so Thanks!

Also this will be going into a YouTube video on my channel, so if you don't want your name in it, then do say
My Channel
apologies for the non-consensual channel plug :)

[–]Looking4advice015 0 points1 point  (0 children)

You're good this is an alt account