每个鼠标单击对象时隐藏和显示按钮
问题描述:
你好,
我有一个我无法隐藏的按钮(它总是在屏幕上,但我想隐藏它然后显示它)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