Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

LeanTween Editor - Released!

Discussion in 'Assets and Asset Store' started by dentedpixel, Jul 16, 2013.

  1. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    4,024
    I'm having an issue with one of my game objects using the move function. Here is the code:

    Code (CSharp):
    1. go = Fsm.GetOwnerDefaultTarget(gameObject);
    2. _moveTo = go.transform.position + deltaMove;
    3.  
    4. LeanTween.move(go, _moveTo, value).setOnComplete(MoveComplete);
    In this case, the movement is in 2D space and strictly in the Y position. The move amount is -8.5 in the Y direction and the value is 1.5 seconds. So, the object should move -8.5 in 1.5 seconds. However, this only works some of the time. About 50% of the time, the object moves part of the way and then just stops. And since it hasn't reached the destination, the OnComplete function is never called.

    Any ideas what could cause this to fail?

    [EDIT]
    I switched to DOTween Pro and the issue never happened again. So, it was clearly a LeanTween issue.
     
    Last edited: Dec 18, 2018
  2. arbt

    arbt

    Joined:
    May 22, 2013
    Posts:
    10
    Hi, for our game we need objects moving along a path inside another object (parent) that is in motion. Would this work? As in, will the path adapt to the parent? Thanks.
     
  3. giantkilleroverunity3d

    giantkilleroverunity3d

    Joined:
    Feb 28, 2014
    Posts:
    383
    In trying to use this product:
    ArgumentNullException: Value cannot be null.
    Parameter name: value
    System.Enum+EnumResult.SetFailure (System.Enum+ParseFailureKind failure, System.String failureParameter) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    System.Enum.TryParseEnum (System.Type enumType, System.String value, System.Boolean ignoreCase, System.Enum+EnumResult& parseResult) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    System.Enum.Parse (System.Type enumType, System.String value, System.Boolean ignoreCase) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    DentedPixel.LTEditor.LeanTweenVisual.buildTween (DentedPixel.LTEditor.LeanTweenItem item, System.Single delayAdd, System.Boolean generateCode) (at Assets/LeanTweenEditor/LeanTweenVisual.cs:225)
    DentedPixel.LTEditor.LeanTweenVisual.buildGroup (System.Object g) (at Assets/LeanTweenEditor/LeanTweenVisual.cs:529)
    DentedPixel.LTEditor.LeanTweenVisual.buildAllTweens (System.Boolean generateCode, UnityEngine.GameObject overrideGameObject) (at Assets/LeanTweenEditor/LeanTweenVisual.cs:575)
    DentedPixel.LTEditor.LeanTweenVisualEditor.OnInspectorGUI () (at Assets/LeanTweenEditor/Editor/LeanTweenVisualEditor.cs:506)
    UnityEditor.InspectorWindow.DoOnInspectorGUI (System.Boolean rebuildOptimizedGUIBlock, UnityEditor.Editor editor, System.Boolean wasVisible, UnityEngine.Rect& contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1625)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Can I get a response? All the other links are outdated from years ago. If I cant get a response I have to switch products. I have wasted 4 hours trying to solve this on my own. I am not the dev and this failure is not my responsibility.
     
    Last edited: Jan 26, 2020
  4. giantkilleroverunity3d

    giantkilleroverunity3d

    Joined:
    Feb 28, 2014
    Posts:
    383
    I see you switched. Did you not get a response from LT?
     
  5. giantkilleroverunity3d

    giantkilleroverunity3d

    Joined:
    Feb 28, 2014
    Posts:
    383
    Did you not get a reply from DentedPixel?
     
  6. giantkilleroverunity3d

    giantkilleroverunity3d

    Joined:
    Feb 28, 2014
    Posts:
    383
    In my world if the dev doesnt reply then the asset should be removed from the store. Enough posters could cause this to happen.
     
    Ziplock9000 likes this.
  7. Fritsl

    Fritsl

    Joined:
    Mar 10, 2013
    Posts:
    211
    Bump, am also stuck with Lean Tween Visual Editor throwing error.. However, it appears easy to fix:

    in

    public class LeanTweenVisualEditor : Editor

    Change

    Code (CSharp):
    1.     foreach(LeanTweenItem item in group.itemList)
    2.                     {
    3.                         //TweenAction a = (TweenAction)item.action;
    4.  
    5.                         TweenAction a = (TweenAction)System.Enum.Parse(typeof(TweenAction), item.actionStr, true);
    6.                         item.action = a;
    to

    Code (CSharp):
    1.     foreach(LeanTweenItem item in group.itemList)
    2.                     {
    3.                         TweenAction a = (TweenAction)item.action;
    4.  
    5.                       //  TweenAction a = (TweenAction)System.Enum.Parse(typeof(TweenAction), item.actionStr, true);
    6.                         item.action = a;
     
    Last edited: Aug 7, 2020
  8. Ziplock9000

    Ziplock9000

    Joined:
    Jan 26, 2016
    Posts:
    360
    So I take it there's no working editor for setting up nodes/spline with LeanTween that works with U2020+?
     
  9. giantkilleroverunity3d

    giantkilleroverunity3d

    Joined:
    Feb 28, 2014
    Posts:
    383
    I posted concerns last year and never got a response. The posts on the the support are years old.
    I dont believe he is responding. Though i wish he was. I have the asset.
    And I am starting to see that devs that include source code can just walk away.
     
    Ziplock9000 likes this.