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 - y-mai

Pages: [1]
1
DOTween & DOTween Pro / Re: Easing at the end of the value is wrong
« on: November 30, 2015, 02:14:39 AM »
Hi,

Ok! I'll use "OnComplete".
Thank you for your advice.

2
DOTween & DOTween Pro / Re: Easing at the end of the value is wrong
« on: November 27, 2015, 01:35:45 AM »
Hi Daniele,

Thank you for your reply!

Oh, I see. Maybe that means ... It is dangerous to judgment as follows code, isn't it?

Code: [Select]
void Update ()
{
    if( m_renderer.color.a <= 0.0f )
    {   // It does not pass! never.
        GameObject.Destroy( gameObject );
    }
}

And Just out of curiosity, Is that possible just changing Default Ease?

Thanks,

y-mai

3
DOTween & DOTween Pro / Easing at the end of the value is wrong
« on: November 26, 2015, 06:04:35 AM »
Hi,

I use the Sequence.Append as e.g,
Easing at the end of the value is wrong when I change "default Ease" by DOTween Utility Panel.

e.g.
Code: [Select]
void onComp()
{
    Debug.LogFormat( "onComplete {0}" , m_renderer.color.a );
}

void Start ()
{
    float liveTime = 2.0f;
    m_renderer = GetComponent<SpriteRenderer>();
    Sequence seq = DOTween.Sequence();
    seq.Append( m_renderer.DOFade( 0.2f , 0.1f ) ).SetEase( Ease.Linear );
    seq.Append( m_renderer.DOFade( 0.0f , liveTime ) ).SetEase( Ease.Linear ).OnComplete( onComp );
}

I set "default Ease" to "Unset" then printed "onComplete 0".
but, if set "default Ease" to "Linear", printed "onComplete 1.192093E-08" (Umm...!?)

Is this would be trouble ?


DOTween version:
v1.0.720   -> didn't occurs this symptom
v1.0.750~ -> occurs!!

Unity Version:
5.2.3f1

Regards,

Pages: [1]