2015年6月26日

unity5, animator state machine, 无条件transition实现播放动画序列

摘要: 今天遇到这样一个需求,我有一个名为happy的animation clip和一个名为speak的animation clip。想实现当主角胜利后播放动序列:happy->speak->happy->speak->...这样无限循环。走了一些弯路后发现直接在animator state machine... 阅读全文

posted @ 2015-06-26 17:21 wantnon 阅读(2252) 评论(0) 推荐(0)

unity, change shader for me and all my children

摘要: public void changeShaderForMeAndAllMyChildren(){ Transform[] childrenTransformList = GetComponentsInChildren();//注意GetComponentsInChildren包括自身 for... 阅读全文

posted @ 2015-06-26 14:14 wantnon 阅读(284) 评论(0) 推荐(0)

导航