Forum rules - please read before posting.

About "Object: Animate - Legacy - Stop Custom"

Good morning, Chris,

  • I am trying to stop the animation of one out of N objects with an "Object: Animate - Legacy - Stop Custom" action.
  • This animation clip is a simple rotation loop, but it is one out of two clips – either clockwise or counterclockwise.

The GameObject to stop is being sent to the action via a GameObject parameter (which of course works), but unfortunately I cannot pass the AnimationClip as a parameter, too. I tried to do this by creating a parameter of the type "Unity Object", but it seems that an AnimationClip cannot be sent as a parameter … correct?

As a workaround, I tried to simply use two "Object: Animate - Legacy - Stop Custom" actions in a row, one for the CW- and a second one for the CCW-AnimationClip, but that throws an error in the console for the one that is not attached to the GameObject ("could not be played because it couldn't be found!")

Is there an easy way to change this action to

  • either allow parameters for the AnimationClip, too, …
  • or simply have an option to bulk-affect "all" AnimationClips of a GameObject?

Apart from this, running the "Object: Animate - Legacy - Stop Custom" action will always display a warning in the console that "no AC.Shapeable component attached"; is this required?

Comments

  • I will see if the UnityObject parameter can be used to set AnimationClip fields.

    "Object: Animate - Legacy - Stop Custom" action will always display a warning in the console that "no AC.Shapeable component attached";

    Can you share the full message, stacktrace included?

  • Sure:

    No AC.Shapeable component attached to Sphere 01 (UnityEngine.GameObject)!

    -> AC debug logger
    UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
    AC.ACDebug:LogWarning (object,UnityEngine.Object) (at Assets/Plugins/AdventureCreator/Scripts/Static/ACDebug.cs:33)
    AC.Action:AssignFile<AC.Shapeable> (System.Collections.Generic.List1<AC.ActionParameter>,int,int,AC.Shapeable,bool) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/Action.cs:1748) AC.AnimEngine_Legacy:ActionAnimAssignValues (AC.ActionAnim,System.Collections.Generic.List1<AC.ActionParameter>) (at Assets/Plugins/AdventureCreator/Scripts/Animation/AnimEngine_Legacy.cs:766)
    AC.ActionAnim:AssignValues (System.Collections.Generic.List`1<AC.ActionParameter>) (at Assets/Plugins/AdventureCreator/Scripts/Actions/ActionAnim.cs:92)
    AC.ActionList/d__41:MoveNext () (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:403)
    UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
    AC.ActionList:ProcessAction (int) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:379)
    AC.ActionList:ProcessActionEnd (AC.ActionEnd,int,bool) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:570)
    AC.ActionList:EndAction (AC.Action) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:539)
    AC.ActionList/d__41:MoveNext () (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:493)
    UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
    AC.ActionList:ProcessAction (int) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:379)
    AC.ActionList:ProcessActionEnd (AC.ActionEnd,int,bool) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:570)
    AC.ActionList:EndAction (AC.Action) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:539)
    AC.ActionList/d__41:MoveNext () (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:493)
    UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
    AC.ActionList:ProcessAction (int) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:379)
    AC.ActionList:ProcessActionEnd (AC.ActionEnd,int,bool) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:580)
    AC.ActionList:EndAction (AC.Action) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:539)
    AC.ActionList/d__41:MoveNext () (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:493)
    UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
    AC.ActionList:ProcessAction (int) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:379)
    AC.ActionList:ProcessActionEnd (AC.ActionEnd,int,bool) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:580)
    AC.ActionList:EndAction (AC.Action) (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:539)
    AC.ActionList/d__41:MoveNext () (at Assets/Plugins/AdventureCreator/Scripts/ActionList/ActionList.cs:493)
    UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17))

  • Thanks.

    That's safe to ignore, but its appearance is a bug - I will see it removed.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.