DOTween DOPath 问题

fairyGUI的组件不能使用DOTween DOPath的运动
 
我想做一个椭圆运动
请教一下有啥办法可以实现?
已邀请:

谷主

赞同来自:

DOPath支持任何东西,包括fairygui的对象。对Transform的支持只是一个c# 的extension,同理可以用于任何对象。查阅dotween文档或源码。

lanr

赞同来自:

会发送错误
InvalidCastException: Cannot cast from source type to destination type.
DG.Tweening.Plugins.PathPlugin.SetChangeValue (DG.Tweening.Core.TweenerCore`3 t) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Plugins/PathPlugin.cs:57)
 
PathPlugin.cs源码
 
 55:       public override void SetChangeValue(TweenerCore<Vector3, Path, PathOptions> t)
56: {
57: Transform trans = ((Component)t.target).transform;

lanr

赞同来自:

.displayObject.cachedTransform.DOPath
现在是使用这个方式做, 就是坐标转换比较麻烦

谷主

赞同来自:

那恐怕得自己写一个Plugin了,拷贝PathPlugin改改。

要回复问题请先登录注册