mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2026-02-12 10:08:46 +08:00
Stack trace is now fully logged in case of exceptions caught in callbacks thanks to safe mode
This commit is contained in:
parent
bfe4a350a0
commit
a1eedfa14e
@ -1452,7 +1452,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
|
||||||
<summary>
|
<summary>
|
||||||
Smoothly eewinds all tweens that have this target as a reference
|
Smoothly rewinds all tweens that have this target as a reference
|
||||||
(meaning tweens that were started from this target, or that had this target added as an Id)
|
(meaning tweens that were started from this target, or that had this target added as an Id)
|
||||||
and returns the total number of tweens rewinded.
|
and returns the total number of tweens rewinded.
|
||||||
</summary>
|
</summary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -1452,7 +1452,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
|
||||||
<summary>
|
<summary>
|
||||||
Smoothly eewinds all tweens that have this target as a reference
|
Smoothly rewinds all tweens that have this target as a reference
|
||||||
(meaning tweens that were started from this target, or that had this target added as an Id)
|
(meaning tweens that were started from this target, or that had this target added as an Id)
|
||||||
and returns the total number of tweens rewinded.
|
and returns the total number of tweens rewinded.
|
||||||
</summary>
|
</summary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -1452,7 +1452,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
|
||||||
<summary>
|
<summary>
|
||||||
Smoothly eewinds all tweens that have this target as a reference
|
Smoothly rewinds all tweens that have this target as a reference
|
||||||
(meaning tweens that were started from this target, or that had this target added as an Id)
|
(meaning tweens that were started from this target, or that had this target added as an Id)
|
||||||
and returns the total number of tweens rewinded.
|
and returns the total number of tweens rewinded.
|
||||||
</summary>
|
</summary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
@ -9,6 +9,7 @@ using UnityEngine.UI;
|
|||||||
|
|
||||||
public class TempTests : MonoBehaviour
|
public class TempTests : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public Transform t;
|
||||||
Sequence sequence;
|
Sequence sequence;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
@ -19,6 +20,8 @@ public class TempTests : MonoBehaviour
|
|||||||
this.transform.GetComponent<MeshRenderer>().enabled = !this.transform.GetComponent<MeshRenderer>().enabled;
|
this.transform.GetComponent<MeshRenderer>().enabled = !this.transform.GetComponent<MeshRenderer>().enabled;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
sequence.OnStart(MyCallback);
|
||||||
|
|
||||||
sequence.SetLoops(-1, LoopType.Restart);
|
sequence.SetLoops(-1, LoopType.Restart);
|
||||||
sequence.Play();
|
sequence.Play();
|
||||||
}
|
}
|
||||||
@ -30,4 +33,9 @@ public class TempTests : MonoBehaviour
|
|||||||
sequence.Kill();
|
sequence.Kill();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MyCallback()
|
||||||
|
{
|
||||||
|
t.position = Vector3.zero;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -32,7 +32,7 @@ namespace DG.Tweening
|
|||||||
public class DOTween
|
public class DOTween
|
||||||
{
|
{
|
||||||
/// <summary>DOTween's version</summary>
|
/// <summary>DOTween's version</summary>
|
||||||
public static readonly string Version = "1.0.770";
|
public static readonly string Version = "1.0.775";
|
||||||
|
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
// Options ////////////////////////////////////
|
// Options ////////////////////////////////////
|
||||||
|
|||||||
@ -266,7 +266,7 @@ namespace DG.Tweening
|
|||||||
try {
|
try {
|
||||||
callback();
|
callback();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Debugger.LogWarning("An error inside a tween callback was silently taken care of > " + e.Message);
|
Debugger.LogWarning("An error inside a tween callback was silently taken care of > " + e.Message + "\n\n" + e.StackTrace + "\n\n");
|
||||||
return false; // Callback error
|
return false; // Callback error
|
||||||
}
|
}
|
||||||
} else callback();
|
} else callback();
|
||||||
|
|||||||
@ -1452,7 +1452,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOSmoothRewind(UnityEngine.Component)">
|
||||||
<summary>
|
<summary>
|
||||||
Smoothly eewinds all tweens that have this target as a reference
|
Smoothly rewinds all tweens that have this target as a reference
|
||||||
(meaning tweens that were started from this target, or that had this target added as an Id)
|
(meaning tweens that were started from this target, or that had this target added as an Id)
|
||||||
and returns the total number of tweens rewinded.
|
and returns the total number of tweens rewinded.
|
||||||
</summary>
|
</summary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user