#i included the game screen to show i
1 messages · Page 1 of 1 (latest)
forget all that right now, show me the InGameMenu part of the button but in the scene, not the prefab
@gritty epoch here
this isn't the PREFAB which you assigned the fields to
so you're modifying a prefab assigning correct components but then arent using it in the scene itself
so its a completly different Menu Panel
Bruh how do I even manage that
I have no idea
Probably you not knowing differences between a prefab and instance of prefab would not help
So I have a dupe and need to assign the actual one?
wdym a dupe
I have a copy of the prefab which is dif
its not a dupe, its a different version. Non Prefab version
thats not a copy of prefab otherwise it would be blue
its just a regular object that looks similiar to your prefab but its no way linked to it
I see
if you had a prefab linked (one in the scene) then you modified the original prefab then yes you'd see changes in the copy
How do I go about fixing it
Delete the InGameMenu in the scene and replace it with the Prefab one
Then redo what I just did?
redo what ?
all the ones linked within the prefab will be fine and saved.
only need to link the ones that need scene references
cause prefabs isolated cannot link scene objects
you need to put the prefab in a scene if you ever wanted to do that (aside from linking runtime via code, but thats a separate thing)
Right
Okay I have it in the prefab now
I think
sorry english is not my first language lol
i mean to say i have rid of the other game HUD
idk what any of that means. what other game ui ?
all you had to do was delete it the one in scene to replace it with prefab
this
then relink the references to scene object
is Player part of the InGameMenu prefab and why..
it isnt
what is this
timer?
or player?
the player is the asset - timer is not needed in this case, audio player too - threshold is the y coordinate which kills u
ok
am at work can't really call, nor do I prefer them
okay fair enough
you can show it and see what can be done
all i want is for it to repsawn the player, i dont know why it wont work. I've linked it and stuff and written what i think is correct code - do you have any further idea what it could be (:
- well if you just string things together without foundation knowledge that is bound to happen
- I have no idea because you only showed 1 part that was throwing null
i only have 1 error
null error
and for the other one, i took a c# course and study it in college, just it's spoken in italian and so some of the translations acorss confuse me (:
is this what u want
You have to show the setup and what is line 17
audioPlayer.PlayRandomSound();
I see the issue lol - i am not smart
i will be able to fix i5t
i think
nevermind lol
these errors are all the same
nothing changes
something is Null and you're trying to access it
it doesnt matter if its unity or not
language doesn't matter either as most will do the same thing
yes, basically i was calling a null thing so i removede it from the code as it was not needed, i now don tget an error but my player does not respawn
okay you can show that part but frankly new problems post in #💻┃code-beginner as i dont have the time to do 1 on 1 tutor..
my nutiy edditor js straight up crashed