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 - jjv

Pages: [1]
1
Let's say I have a rectangle and inside it I have another smaller one. Smaller one is a child of a bigger one. Now, let's say I tween the smaller rectangle so it repeatedly moves from left to right staying withing the bounds of the parent rectangle. I'm using DOMoveX for that purpose.

The problem happens when I want to move a bigger rectangle around. The smaller one still moves from left to right but is not following the bigger one as it would if there were no tween. Is it possible to achieve this effect of "snapping" a tween to a coordinate system of an object? If I understand it correctly that would require updating tween while it is playing...

Thanks 

2
DOTween & DOTween Pro / Re: Using source code
« on: April 30, 2015, 03:40:36 AM »
I'm an idiot. During my optimization spree I removed .SetAutoKill(false) on some of the sequences. So it works the first time but not the second...

When you switch to verbose log it actually says "DOTWEEN :: This Tween has been killed and is now invalid" This should probably be an error and not warning?

On a flip side it was good educational experience as I was able to debug DLLs (I'm new to VS and Unity). This article was helpful http://unityvs.com/documentation/dll-debugging/

Thanks!

3
DOTween & DOTween Pro / Using source code
« on: April 29, 2015, 03:10:08 AM »
Hi there,

I have a strange bug I'm trying to hunt down.

Some context:
I init all my Tweens and Sequences in Start() method of my objects. Before I exit the level I call  DOTween.Clear(true); otherwise when I return to my level with Application.LoadLevelAsync( nextScene ); I can see that tweens are keep growing and it eventually throws "array out of index" or something like that. I use Restart() method to restart tweens.

The issue:
Sometimes when I return to the level after exiting it all tween stop working. I can see in the debugger that tween object is there and Restart() method is called. Yet the tween is not restarting as OnComplete() is not called. There is no any errors in console. It just silently fails somewhere inside. The issue happens only sometimes. Let's say 1 time out of 10.

What I'm trying to do:
I would like to setup DOTween code and troubleshoot the issue further. Yet I'm having problem setting it up. I cloned github repo and now I'm stuck. Before I installed everything via package and Assets\Demigiant\DOTween had Editor folder and bunch of DLLs. I removed dlls and copied over files from https://github.com/Demigiant/dotween/tree/develop/_DOTween.Assembly/DOTween. It complains about "Assets/Demigiant/DOTween/ShortcutExtensions.cs(997,28): error CS0121: The call is ambiguous between the following methods or properties: `DG.Tweening.DOTween.Restart(object, bool)' and `DG.Tweening.DOTween.Restart(object, object, bool)'"
I thought I alls need to overlay https://github.com/Demigiant/dotween/blob/develop/_DOTween.Assembly/DOTween50/ShortcutExtensions.cs yet I get another error "error CS1061: Type `UnityEngine.AudioSource' does not contain a definition for `DOFade' and no extension method `DOFade' of type `UnityEngine.AudioSource' could be found (are you missing a using directive or an assembly reference?)
"

At this point I stopped guessing and decided to ask for some help in setting things up with source code.

Please advice.

Pages: [1]