#i included the game screen to show i

1 messages · Page 1 of 1 (latest)

storm ermine
#

forget all that right now, show me the InGameMenu part of the button but in the scene, not the prefab

#

@gritty epoch here

gritty epoch
#

hold on someone is screaming my name outside lmao

storm ermine
#

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

gritty epoch
#

Bruh how do I even manage that

storm ermine
#

I have no idea

#

Probably you not knowing differences between a prefab and instance of prefab would not help

gritty epoch
#

So I have a dupe and need to assign the actual one?

storm ermine
gritty epoch
#

I have a copy of the prefab which is dif

storm ermine
#

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

gritty epoch
#

I see

storm ermine
#

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

gritty epoch
#

How do I go about fixing it

storm ermine
#

Delete the InGameMenu in the scene and replace it with the Prefab one

gritty epoch
#

Then redo what I just did?

storm ermine
#

all the ones linked within the prefab will be fine and saved.

gritty epoch
#

The buttons connecting to objects

#

For respawn

storm ermine
#

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)

gritty epoch
#

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

storm ermine
#

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

storm ermine
#

then relink the references to scene object

gritty epoch
storm ermine
gritty epoch
#

it isnt

storm ermine
#

what is this

gritty epoch
#

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

storm ermine
#

ok

gritty epoch
#

ye

#

u able to call and go through it with me, im really stuck

storm ermine
#

am at work can't really call, nor do I prefer them

gritty epoch
#

okay fair enough

storm ermine
#

you can show it and see what can be done

gritty epoch
#

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 (:

storm ermine
#
  1. well if you just string things together without foundation knowledge that is bound to happen
  2. I have no idea because you only showed 1 part that was throwing null
gritty epoch
#

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

storm ermine
#

You have to show the setup and what is line 17

gritty epoch
#

audioPlayer.PlayRandomSound();

#

I see the issue lol - i am not smart

#

i will be able to fix i5t

#

i think

#

nevermind lol

storm ermine
#

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

gritty epoch
#

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

storm ermine
gritty epoch
#

my nutiy edditor js straight up crashed