Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,

I have a button I cannot hide (it is always on Screen but I want to hide it and then Show it)Onclick Cheap Youtube viewsI have a houseobject and if i click on this house I want my button do appear on the Screen.

my script on the houseobject so far is:


C#
void OnMouseDown ()

{
    Debug.Log ("houseclicked");

}


Shall I parent the button to the houseobject?

Thanks for reading, cheers
Posted
Comments
Sergey Alexandrovich Kryukov 12-Apr-15 14:59pm    
void OnMouseDown()? No, this is not JavaScript...
—SA

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900