hi,
was Trying to use A* pathfinding project Pro Latest Version with Dotween Pro Latest version with unity 2017.4.0f1
when I install A* then transform.DoPath Breaks
otherwise it works All Fine
when I delete A* it again starts working
A* is breaking transform.DoPath functionality from DOtween
: error CS1929: Type UnityEngine.Transform' does not contain a memberDOPath’ and the best extension method overload DG.Tweening.ShortcutExtensions.DOPath(this UnityEngine.Rigidbody, UnityEngine.Vector3[], float, DG.Tweening.PathType, DG.Tweening.PathMode, int, UnityEngine.Color?)' requires an instance of typeUnityEngine.Rigidbody’
public void start_moving()
{
var myPAth= transform.DOPath(Globals.path.vectorPath,(float) unit.Speed * Globals.path.vectorPath.Count,PathType.Linear,PathMode.Full3D,10,null);
}
Assets/_Project/_Scripts/UnitMover.cs(34,33): error CS1929: Type UnityEngine.Transform' does not contain a memberDOPath’ and the best extension method overload DG.Tweening.ShortcutExtensions.DOPath(this UnityEngine.Rigidbody, UnityEngine.Vector3[], float, DG.Tweening.PathType, DG.Tweening.PathMode, int, UnityEngine.Color?)' requires an instance of typeUnityEngine.Rigidbody’
Hm… Strange. So it looks like some extension method that DOTween uses is not working anymore.
You didn’t move around some folders while you did this that could change the compilation order perhaps?
That start_moving method seems to use some code related to this pathfinding package. Are you sure that code was actually compiled when you hadn’t imported the pathfinding package?