暴躁小强 发表于 2012-11-16 14:43

Unity 触发鼠标时间 改变物体颜色代码

function OnMouseEnter()
{
//change color of the text
renderer.material.color = Color.red;
}

function OnMouseExit()
{
//change color of the text
renderer.material.color = Color.yellow;
}

aaabbbsss12345 发表于 2014-5-27 11:18

学习 学习了

pochenshu 发表于 2017-3-3 08:25

很不错

shadow_qxz 发表于 2017-3-3 08:46

真心顶

啊根 发表于 2017-3-3 09:02

说的非常好

U侠 发表于 2017-3-3 09:19

很好哦

chenlu632 发表于 2017-3-3 09:08

不错不错

tangyu3 发表于 2017-3-6 18:34

楼主是超人

aditya333 发表于 2017-3-6 18:09

真心顶

飞鸽 发表于 2017-3-6 18:25

说的非常好
页: [1]
查看完整版本: Unity 触发鼠标时间 改变物体颜色代码