Newbie - Activate Canvas on Raycasthit or collider trigger

Hi there.

I’m trying to find some “howto” of how i could activate a canvas when i hit an object ( i think that maybe easy to accomplish) or when i press a button when i’m on a trigger collider, but i can’t find any tutorial.

Anyone could help me?

Tried doing as you do to activate/deactivate regular game objects?

1 Like

Thx! i found the easiest way :smile:
public GameObject whatever;
void OnMouseDown (){
whatever.SetActive(true);
}