Search Unity

Question I don't know why is it not working?

Discussion in 'Prefabs' started by unity_TR7C4xry9zxIAw, Dec 14, 2020.

  1. unity_TR7C4xry9zxIAw

    unity_TR7C4xry9zxIAw

    Joined:
    Jul 8, 2020
    Posts:
    26
    Hello,

    I have seven objects and buttons. I want to make sure that when I press the button, I see the object and if the button is not pressed, I don't want to see the object. So, I set up the OnClick() event : Gameobject.SetActive. When i press play mode and button, object is not showing.

    How to solve this problem?