每个鼠标单击对象时隐藏和显示按钮 [英] Hide and Show a button when object is clicked per mouse
本文介绍了每个鼠标单击对象时隐藏和显示按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我有一个我无法隐藏的按钮(它总是在屏幕上,但我想隐藏它然后显示它)Onclick 便宜的Youtube观看次数 我有一个房子对象,如果我点击这个房子,我想要我的按钮确实出现在屏幕上。
到目前为止我在家庭对象上的剧本是:
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:
void OnMouseDown ()
{
Debug.Log ("houseclicked");
}
我应该按下房子对象的按钮吗?
感谢阅读,欢呼
Shall I parent the button to the houseobject?
Thanks for reading, cheers
推荐答案
http://stackoverflow.com/questions/8685107/hiding-a-button-in-javascript [ ^ ]
这篇关于每个鼠标单击对象时隐藏和显示按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文