Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JosYule

Pages: [1]
1
Ok, got it.

I've also started using the static methods on the DOTween class. I can add multiple DOTweenAnimation components to my GO, give them each an ID, and play them via the DOTween.Play(target,ID) method.

Thanks again,
Jos

2
I'm using a DOTweenAnimation component, set to do a fade.

I'm triggering it via a script, so to hide the component i'm calling DOPlayForward and to show it i'm calling DOPlayBackward.

I need to know when the animation is complete, so i'm using the "On Complete" event hook in the component to call a function in another script.

This works for the DOPlayForward style, but not for the DoPlayBackward call. How can i get a callback for when the animation is done when playing backwards? Ideally, i'd want the OnComplete called for this too.

Thanks
Jos

3
Ok, good to know about PlayForward and DOPlayBackwards. However, this is only appropriate if i want the same animation, in reverse, to be the "off" animation. Which we don't always want. An easy example would be a Panel which moves on-screen from the right to the centre. Then moving from the centre to the right till it is off screen.

Thanks
Jos

4
Hello.

Sometimes i need to create multiple chained sequences of movements with multiple DOTweenAnimation components. I'd like to be able to organize them using different GameObjects, so they are not all on a single GameObject, which makes it very hard to figure out what comes after what. For this to work, i would need a way to target a transform which is not the one the DOTweenAnimation component is part of.

I guess this is a feature request! :)

Thanks!
Jos

5
Hello!

I just purchased DotweenPro and am trying to do the following.

I have a UnityEngine.UI.Panel on which i've added 2 DotweenAnimation components. One to move the Panel off-screen, the other to move it on-screen. I then have a second component, on a different GameObject, with 2 DotweenAnimation fields. I put each of the Move animations into those fields, which i then call ".DOPlay()" on.

I can get the first one to work, but the second never seems to actually do anything. Am I using the wrong method to start the animations? Any suggestions?

Thanks!
Jos

Pages: [1]