http://u3d.as/content/pixelplacement/i-tween/1s9 download

http://itween.pixelplacement.com/documentation.php#MoveTo api


  iTween.MoveTo(gameObject, iTween.Hash("x", 5, "time", 5, "easetype", iTween.EaseType.easeInBack)) ;

  添加的物体(gameObject)以某一动作(easetype)移动到某一位置(hash(x, y, z)||Vector3)

  void OnMouseEnter(){} 当鼠标进入该物体时调用

     将物体move在鼠标移动到当前物体时以easeInBack的方式移动到当前物体上

    public GameObject move ;
    void OnMouseEnter(){
        iTween.MoveTo(move, iTween.Hash("x", transform.position.x, "y", transform.position.y, "z", transform.position.z, "time", 5, "easetype", 
      iTween.EaseType.easeInBack)) ; }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
猜你喜欢
  • 2021-05-07
  • 2021-12-19
  • 2021-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-07-19
相关资源
相似解决方案