mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2026-02-10 17:18:45 +08:00
Made compatible with Unity 5.4 (removed OnLevelWasLoaded from DOTweenComponent)
This commit is contained in:
parent
f3a549436b
commit
08b0f5a677
5
.gitignore
vendored
5
.gitignore
vendored
@ -6,6 +6,7 @@ _DOTween.Assembly/*.suo
|
||||
_DOTween.Assembly/*.user
|
||||
_DOTween.Assembly/.gitignore
|
||||
_DOTween.Assembly/.git
|
||||
|
||||
ExternalPluginsTestsAndExamples*
|
||||
*.Unity*/_ReSharper*
|
||||
*.Unity*/Library
|
||||
@ -30,4 +31,6 @@ ExternalPluginsTestsAndExamples*
|
||||
zz builds
|
||||
zz UnityTests*
|
||||
*.tmp
|
||||
*.pdb
|
||||
*.pdb
|
||||
|
||||
UnityTests.Unity5BETA
|
||||
@ -356,7 +356,6 @@
|
||||
<summary>
|
||||
Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
|
||||
and returns the total number of invalid tweens found and removed.
|
||||
<para>Automatically called when loading a new scene if <see cref="F:DG.Tweening.DOTween.useSafeMode"/> is TRUE.</para>
|
||||
BEWARE: this is a slightly expensive operation so use it with care
|
||||
</summary>
|
||||
</member>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -356,7 +356,6 @@
|
||||
<summary>
|
||||
Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
|
||||
and returns the total number of invalid tweens found and removed.
|
||||
<para>Automatically called when loading a new scene if <see cref="F:DG.Tweening.DOTween.useSafeMode"/> is TRUE.</para>
|
||||
BEWARE: this is a slightly expensive operation so use it with care
|
||||
</summary>
|
||||
</member>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -356,7 +356,6 @@
|
||||
<summary>
|
||||
Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
|
||||
and returns the total number of invalid tweens found and removed.
|
||||
<para>Automatically called when loading a new scene if <see cref="F:DG.Tweening.DOTween.useSafeMode"/> is TRUE.</para>
|
||||
BEWARE: this is a slightly expensive operation so use it with care
|
||||
</summary>
|
||||
</member>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,6 +13,10 @@ PluginImporter:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
WindowsStoreApps:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -13,6 +13,10 @@ PluginImporter:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
WindowsStoreApps:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -13,6 +13,10 @@ PluginImporter:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
WindowsStoreApps:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -13,6 +13,10 @@ PluginImporter:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
WindowsStoreApps:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -13,6 +13,10 @@ PluginImporter:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
WindowsStoreApps:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -9,7 +9,7 @@ public class ShakeInverse : MonoBehaviour
|
||||
IEnumerator Start()
|
||||
{
|
||||
yield return new WaitForSeconds(0.6f);
|
||||
Tween t = trans.DOShakePosition(4, 2).SetAutoKill(false);
|
||||
Tween t = trans.DOShakePosition(2, 1, 14).SetAutoKill(false);
|
||||
t.Complete();
|
||||
t.PlayBackwards();
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
m_EditorVersion: 5.3.2f1
|
||||
m_EditorVersion: 5.4.0b10
|
||||
m_StandardAssetsVersion: 0
|
||||
|
||||
@ -74,10 +74,11 @@ namespace DG.Tweening.Core
|
||||
}
|
||||
}
|
||||
|
||||
void OnLevelWasLoaded()
|
||||
{
|
||||
if (DOTween.useSafeMode) DOTween.Validate();
|
||||
}
|
||||
// Removed to allow compatibility with Unity 5.4 and later
|
||||
// void OnLevelWasLoaded()
|
||||
// {
|
||||
// if (DOTween.useSafeMode) DOTween.Validate();
|
||||
// }
|
||||
|
||||
void OnDrawGizmos()
|
||||
{
|
||||
|
||||
@ -32,7 +32,7 @@ namespace DG.Tweening
|
||||
public class DOTween
|
||||
{
|
||||
/// <summary>DOTween's version</summary>
|
||||
public static readonly string Version = "1.1.190";
|
||||
public static readonly string Version = "1.1.200";
|
||||
|
||||
///////////////////////////////////////////////
|
||||
// Options ////////////////////////////////////
|
||||
@ -253,7 +253,6 @@ namespace DG.Tweening
|
||||
/// <summary>
|
||||
/// Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
|
||||
/// and returns the total number of invalid tweens found and removed.
|
||||
/// <para>Automatically called when loading a new scene if <see cref="useSafeMode"/> is TRUE.</para>
|
||||
/// BEWARE: this is a slightly expensive operation so use it with care
|
||||
/// </summary>
|
||||
public static int Validate()
|
||||
|
||||
@ -356,7 +356,6 @@
|
||||
<summary>
|
||||
Checks all active tweens to find and remove eventually invalid ones (usually because their targets became NULL)
|
||||
and returns the total number of invalid tweens found and removed.
|
||||
<para>Automatically called when loading a new scene if <see cref="F:DG.Tweening.DOTween.useSafeMode"/> is TRUE.</para>
|
||||
BEWARE: this is a slightly expensive operation so use it with care
|
||||
</summary>
|
||||
</member>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user