#so instead of bool i have to put

1 messages · Page 1 of 1 (latest)

vital dew
#

Use the thread

thorn rune
#

ok

#

@visual needle

#

@fierce reef

#

ok so

#

@fierce reef so i will leave the bool like this?

random oar
#

You named both your bool and your CameraManager as isCamOn, and that is confusing you

thorn rune
#

and just change it here

random oar
#

there yes

#

now you do camManager.isCamOn

#

and you will acess the bool of the CameraManager class/boject

thorn rune
random oar
#

object*

#

Yes

fierce reef
thorn rune
#

cool

#

ok so

thorn rune
#

ok so like this?

random oar
#

yes

thorn rune
#

ok hope it works 😺

fierce reef
#

it does

random oar
#

trial and error

thorn rune
#

ok if this works i have 1 more thing to do

fierce reef
#

hopefully that one more thins is "learning the basics of c# and how to access the public members of an object"

thorn rune
#

it doest work

#

hold up

#

maybe i did something wrong?

random oar
#

What is your error?

thorn rune
fierce reef
#

what are you expecting to happen there?

thorn rune
#

i dont have any error

#

but the text doesnt appear when the security cameras are on

fierce reef
#

is the GameObject the TMP_Text is on enabled?

thorn rune
#

wym

random oar
#

Show your hierarchy where the gameobject with the text is

thorn rune
random oar
#

thats good as well, but show the list of all the game objects

fierce reef
#

show the NOSIGNALTExt object

#

the entire object

thorn rune
random oar
#

ok, so you need to get the gameobject and enable it

fierce reef
#

look at that, the text object is enabled but the GameObject is not

random oar
#

not the text

#

as box was saying

fierce reef
#

fucking hell. go learn the basics dude

thorn rune
#

yea because i want the text to appear only when i click a button to open the security cameras

random oar
#

NOSIGNALTExT is a gameobject

thorn rune
#

i dont understand why you mad

thorn rune
fierce reef
#

that's a component that is attached to a GameObject

random oar
#

We're just frusterated you don't understand the very very basics

fierce reef
#

you would know this if you did literally any basic unity course

thorn rune
#

its to the canvas

#

literally

random oar
#

Its on the gameobject

fierce reef
# thorn rune hm

alright, i'm tired of these useless responses. so blocked. have fun.

thorn rune
#

bro got that mad that he rage quited

#

💀

random oar
#

What you need to do is change the TMP_TEXT to GameObjecg

thorn rune
#

like calm bro

random oar
#

GameObject

thorn rune
#

fr

visual needle
# thorn rune hm

Please try to learn at least the most simple of basics before you try to ask questions whose answers you are incapable of understanding

random oar
#

and it will work

thorn rune
#

okay

#

okay

#

😺

random oar
#

then drag the NOSIGNALTExT back in the inspect, where you set it before

#

inspector*

thorn rune
#

okay

#

okay 1 more thing

random oar
#

did it work?

thorn rune
#

yep

random oar
#

nice

thorn rune
#

1 more thing

#

im glad that you can actually help me and not rage quit like the other guy

random oar
#

It's all good

thorn rune
#

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

random oar
#

Just trying to understand what you said

#

So you want them to turn on wait 2 seconds and turn back off?

thorn rune
#

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

thorn rune
#

i want the text to do that

random oar
#

So with the camerablocks are Active you want the text shown, and when not active nto shown?

thorn rune
#

yes

#

exactly

random oar
#

ok let me think for a minute

thorn rune
#

i have to put the code above CameraBlocks[0].setActive(true); i guess

random oar
#

Yeah

#

the isCamOn check, and then you enable that game object there

thorn rune
#

uh

random oar
#

what script is that code in? the same one as we were editing with the bool?

thorn rune
#

where i made this

random oar
#

oh ok, thats good then. Did you figure it out? if not im typing up an example

thorn rune
#

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

random oar
#

that should work

thorn rune
#

i think its working

random oar
#

I'm glad you got that sorted out

thorn rune
#

this is how you actually help people

#

not to rage quit

random oar
#

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.

random oar
#

Have a good one, dm me if you need any help, if I'm around I'll probably be able to.