#so instead of bool i have to put
1 messages · Page 1 of 1 (latest)
ok
@visual needle
@fierce reef
ok so
@fierce reef so i will leave the bool like this?
You named both your bool and your CameraManager as isCamOn, and that is confusing you
and just change it here
there yes
now you do camManager.isCamOn
and you will acess the bool of the CameraManager class/boject
CameraMananger is the script name btw
we are very aware of that
yes
ok hope it works 😺
it does
trial and error
ok if this works i have 1 more thing to do
hopefully that one more thins is "learning the basics of c# and how to access the public members of an object"
What is your error?
what are you expecting to happen there?
is the GameObject the TMP_Text is on enabled?
wym
Show your hierarchy where the gameobject with the text is
thats good as well, but show the list of all the game objects
ok, so you need to get the gameobject and enable it
look at that, the text object is enabled but the GameObject is not
wym
what gameobject
fucking hell. go learn the basics dude
yea because i want the text to appear only when i click a button to open the security cameras
NOSIGNALTExT is a gameobject
i dont understand why you mad
its a Text mesh pro text
that's a component that is attached to a GameObject
We're just frusterated you don't understand the very very basics
you would know this if you did literally any basic unity course
hm
its to the canvas
literally
Its on the gameobject
alright, i'm tired of these useless responses. so blocked. have fun.
What you need to do is change the TMP_TEXT to GameObjecg
like calm bro
GameObject
fr
Please try to learn at least the most simple of basics before you try to ask questions whose answers you are incapable of understanding
and it will work
did it work?
yep
nice
1 more thing
im glad that you can actually help me and not rage quit like the other guy
It's all good
so basically CameraBlocks are activating when another gameobject is activating, but how can i make my text to activate when CameraBlocks are activating?
i have to put the code above CameraBlocks[0].setActive(true); i guess
Just trying to understand what you said
So you want them to turn on wait 2 seconds and turn back off?
so in my scene a character keeps activating and turning off
when my character is active, CameraBlocks are getting active as well
CameraBlocks[0].setActive(true);
after 2 seconds they are going to turn off
and i want when CameraBlocks is active, the text to be active as well
yes
i want the text to do that
So with the camerablocks are Active you want the text shown, and when not active nto shown?
ok let me think for a minute
i have to put the code above CameraBlocks[0].setActive(true); i guess
uh
what script is that code in? the same one as we were editing with the bool?
no its in another script
where i made this
oh ok, thats good then. Did you figure it out? if not im typing up an example
hold on i think its working
ok i made like this, its working but when i close the security cameras and then re open them the text is not there anymore
oh wait
that should work
i think its working
I'm glad you got that sorted out
yup its working, thank you so much for actually helping me
this is how you actually help people
not to rage quit
Sorry you had a bad experience, it would do good to learn about basic variable types, as you are confusing a few things that would have made your life easier. Good job just running in and doing it as well though, a lot of people just never get started.
yup i will learn
yea
Have a good one, dm me if you need any help, if I'm around I'll probably be able to.