用户登录
用户注册

分享至

unity锚点

  • 作者: 子修丸
  • 来源: 51数据库
  • 2020-09-23
你可以给它添加一个空物体,作为它的子物体,也当成是锚点,然后用Transform.RotateAround();



  //c# public recttransform target; //指定物件的recttransform(锚点) public vector2 offset; //与锚点之间的距离 void update(){ getcomponent<recttransform>().anchoredposition = target.anchoredposition + offset; }
软件
前端设计
程序设计
Java相关