签到

05月05日
尚未签到

共有回帖数 0

    奈何情殇

    等级:
    想点击一个按钮让镜头回到position的 x y z都等于0的状态

    我在OnGUI()中写的是
    if(GUI.Button(Rect(x,x,x,x),"return"))
    {
    gameObject.transform.position.x=0;
    gameObject.transform.position.x=0;
    gameObject.transform.position.x=0;
    }
    不好使啊。。。

    楼主 2015-06-22 16:20 回复

共有回帖数 0
  • 回 帖
  • 表情 图片 视频
  • 发表

登录直线网账号

Copyright © 2010~2015 直线网 版权所有,All Rights Reserved.沪ICP备10039589号 意见反馈 | 关于直线 | 版权声明 | 会员须知