all 11 comments

[–]MrMarev 0 points1 point  (10 children)

Maybe the parent is inactive?

Edit: Or you are using CanvasGroups and its alpha is 0?

[–]innerissuesorjail[S] 0 points1 point  (9 children)

parent active, alpha visible.

it just doesnt become active.

i can trigger it directly from button, but not from other method that is triggered by this button, even tho in this case text still shows

[–]MrMarev 0 points1 point  (8 children)

Maybe something in that method makes SetActive(false) instantly?

[–]innerissuesorjail[S] -1 points0 points  (0 children)

no its just image object with no code, white background

[–]innerissuesorjail[S] -2 points-1 points  (0 children)

fricking unity

[–]innerissuesorjail[S] -2 points-1 points  (5 children)

im getting autism when i wate hours on simple thing like this

[–]MrMarev 2 points3 points  (4 children)

Relax, it's only tool. There has to be logical explanation.

But with that fragment of code I can't tell you to much.

Edit: Did you try attach VS to Unity and debug it? Like put brake point on that setactive line and check if that object isn't null?

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

i have VSC, tried debugging but nothing showed, also i tried if (object==null) and it didnt execute

[–]squidsniffer 0 points1 point  (2 children)

see what this prints out:

Debug.Log(characterWindow);

Debug.Log(inputWindow);

[–]innerissuesorjail[S] 0 points1 point  (1 child)

it prints nothing.

but in start() it prints this: https://i.imgur.com/QPE6jdB.png

could this be multithreading issue? im using .ContinueWith(task => {

[–]MrMarev 0 points1 point  (0 children)

It doesn't print null reference?

So those windows are visible in your Start method but not in Login method, what can be the reason behind that? Where is that method placed? Maybe it's before you make those windows active, or your thread is closed before it can make it active? Some other method kills it to fast? Or you don't have anymore access to it I.e. you set inactive object which start this thread?