mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
Implemented utilities used by DOTween Pro
This commit is contained in:
parent
61c4c9a7d8
commit
bc6fdf3dd8
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,5 +17,6 @@ _DOTween.Assembly/.git
|
||||
*.Unity*/*.userprefs
|
||||
*.Unity*/Assets/Demigiant/DOTweenPro*
|
||||
*.Unity*/Assets/TK2D*
|
||||
*.Unity*/Assets/-tk2d*
|
||||
*.Unity*/Assets/Console*Pro*
|
||||
*.Unity*/Assets/Text*Mesh*Pro*
|
||||
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.
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.
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.
@ -1,12 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 47b1c758170446e478d8369151ad68c0
|
||||
timeCreated: 1427980379
|
||||
licenseType: Free
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
enableMipMap: 0
|
||||
linearTexture: 1
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
@ -20,16 +22,20 @@ TextureImporter:
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
cubemapConvolution: 0
|
||||
cubemapConvolutionSteps: 8
|
||||
cubemapConvolutionExponent: 1.5
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureFormat: -3
|
||||
maxTextureSize: 256
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
rGBM: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
@ -38,10 +44,12 @@ TextureImporter:
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: -1
|
||||
alphaIsTransparency: 1
|
||||
textureType: 2
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
Binary file not shown.
@ -41,15 +41,11 @@ public class ExternalPlugins_TextMeshPro : BrainBase
|
||||
GUILayout.BeginHorizontal();
|
||||
if (GUILayout.Button("Glow Color To Green")) foreach (TextMeshPro t in texts) t.DOGlowColor(Color.green, 1).SetEase(Ease.Linear);
|
||||
if (GUILayout.Button("Glow Color To Red")) foreach (TextMeshPro t in texts) t.DOGlowColor(Color.red, 1).SetEase(Ease.Linear);
|
||||
if (GUILayout.Button("Glow Fade Out")) foreach (TextMeshPro t in texts) t.DOGlowFade(0, 1).SetEase(Ease.Linear);
|
||||
if (GUILayout.Button("Glow Fade In")) foreach (TextMeshPro t in texts) t.DOGlowFade(1, 1).SetEase(Ease.Linear);
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
if (GUILayout.Button("Outline Color To Green")) foreach (TextMeshPro t in texts) t.DOOutlineColor(Color.green, 1).SetEase(Ease.Linear);
|
||||
if (GUILayout.Button("Outline Color To Red")) foreach (TextMeshPro t in texts) t.DOOutlineColor(Color.red, 1).SetEase(Ease.Linear);
|
||||
if (GUILayout.Button("Outline Fade Out")) foreach (TextMeshPro t in texts) t.DOOutlineFade(0, 1).SetEase(Ease.Linear);
|
||||
if (GUILayout.Button("Outline Fade In")) foreach (TextMeshPro t in texts) t.DOOutlineFade(1, 1).SetEase(Ease.Linear);
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
|
||||
15
UnityTests.Unity5/Assets/_Tests/LocalAxisTweens.cs
Normal file
15
UnityTests.Unity5/Assets/_Tests/LocalAxisTweens.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using DG.Tweening;
|
||||
|
||||
public class LocalAxisTweens : BrainBase
|
||||
{
|
||||
public Transform[] targets;
|
||||
|
||||
IEnumerator Start()
|
||||
{
|
||||
yield return new WaitForSeconds(0.6f);
|
||||
|
||||
foreach (Transform t in targets) t.DOLocalMoveX(2, 2);
|
||||
}
|
||||
}
|
||||
12
UnityTests.Unity5/Assets/_Tests/LocalAxisTweens.cs.meta
Normal file
12
UnityTests.Unity5/Assets/_Tests/LocalAxisTweens.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c184d3b18a910cb43b731045d27ea8bb
|
||||
timeCreated: 1427882528
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
UnityTests.Unity5/Assets/_Tests/LocalAxisTweens.unity
Normal file
BIN
UnityTests.Unity5/Assets/_Tests/LocalAxisTweens.unity
Normal file
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ff5b2c84408b4ae4f9b2cb0a91a444f0
|
||||
timeCreated: 1427882517
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -3,60 +3,18 @@ using UnityEngine.UI;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DG.Tweening;
|
||||
using DG.Tweening.Plugins;
|
||||
using DG.Tweening.Plugins.Core;
|
||||
using DG.Tweening.Plugins.Options;
|
||||
using System;
|
||||
|
||||
public class TempTests : BrainBase
|
||||
{
|
||||
int count;
|
||||
float fToTween = 14.2f;
|
||||
ulong uToTween = 512UL;
|
||||
long lToTween = 512L;
|
||||
ulong uFull = 18446744073709551615UL;
|
||||
|
||||
IEnumerator Start()
|
||||
{
|
||||
yield return new WaitForSeconds(1);
|
||||
|
||||
Debug.Log(uFull.GetType() + " - " + uFull.ToString("N20"));
|
||||
Debug.Log(Convert.ToUInt64(uFull).GetType() + " - " + Convert.ToUInt64(uFull).ToString("N20"));
|
||||
Debug.Log((uFull * 0.9f).GetType() + " - " + (uFull * 0.9f).ToString("N20"));
|
||||
Debug.Log("------------------------------");
|
||||
Debug.Log(((ulong)(uFull * 0.9f)).GetType() + " - " + Convert.ToString((ulong)(uFull * 0.9f)));
|
||||
Debug.Log((Convert.ToUInt64(uFull * 0.9f)).GetType() + " - " + Convert.ToString(Convert.ToUInt64(uFull * 0.9f)));
|
||||
Debug.Log((uFull * 1f).ToString("N20"));
|
||||
Debug.Log("------------------------------");
|
||||
Debug.Log((((double)uFull * (double)0.9f)).GetType() + " - " + Convert.ToString(((double)uFull * (double)0.9f)));
|
||||
Debug.Log(((ulong)((double)uFull * (double)0.9f)).GetType() + " - " + Convert.ToString((ulong)((double)uFull * (double)0.9f)));
|
||||
Debug.Log("------------------------------");
|
||||
byte b = (byte)(uFull * 0.9f);
|
||||
Debug.Log(b);
|
||||
Debug.Log((ulong)b);
|
||||
Debug.Log("------------------------------");
|
||||
Debug.Log("------------------------------");
|
||||
Debug.Log((uFull * 0.9f).ToString("#"));
|
||||
Debug.Log(Convert.ToUInt64((uFull * 0.9f).ToString("#")));
|
||||
Debug.Log("------------------------------");
|
||||
Debug.Log(Math.Round(uFull * 0.9f));
|
||||
Debug.Log((ulong)Math.Round(uFull * 0.9f));
|
||||
Debug.Log(Convert.ToUInt64(Math.Round(uFull * 0.9f)));
|
||||
Debug.Log("------------------------------");
|
||||
Debug.Log(((float)Math.Round(uFull * 0.9f)).ToString("N30"));
|
||||
Debug.Log((ulong)((float)Math.Round(uFull * 0.9f)));
|
||||
Debug.Log("::::::::::::::::::::::::::::::");
|
||||
Debug.Log((ulong)(uFull * (decimal)0.9f));
|
||||
|
||||
|
||||
DOTween.To(()=> uToTween, x=> uToTween = x, 18446744073709551615UL, 2).OnComplete(()=> Debug.Log("Complete: " + Time.realtimeSinceStartup + " - " + uToTween.ToString("N0")));
|
||||
|
||||
// DOTween.To(()=> lToTween, x=> lToTween = x, 8446744073709551615L, 2).OnComplete(()=> Debug.Log("Complete: " + Time.realtimeSinceStartup + " - " + lToTween.ToString("N0")));
|
||||
// DOTween.To(()=>fToTween, x=> fToTween = 0, 0, 2).OnComplete(()=> Debug.Log(fToTween.ToString("N30")));
|
||||
}
|
||||
public Transform target;
|
||||
public Ease ease = Ease.Linear;
|
||||
|
||||
void OnGUI()
|
||||
{
|
||||
GUILayout.Label(uToTween.ToString("N0"));
|
||||
if (GUILayout.Button("SHAKE")) {
|
||||
target.DOKill();
|
||||
target.DOShakePosition(4, 1, 3).SetEase(ease);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -8,6 +8,8 @@ public class UIMisc : BrainBase
|
||||
public CanvasGroup cGroup;
|
||||
public Image[] imgs;
|
||||
public Text text, textScramble;
|
||||
public RectTransform circleOutT, circleInT;
|
||||
public RectTransform moveT;
|
||||
|
||||
IEnumerator Start()
|
||||
{
|
||||
@ -26,6 +28,13 @@ public class UIMisc : BrainBase
|
||||
foreach (Image img in imgs) img.fillClockwise = !img.fillClockwise;
|
||||
});
|
||||
|
||||
// RectTransform
|
||||
// Rotate
|
||||
circleOutT.DORotate(new Vector3(0,0,360), 0.5f, RotateMode.FastBeyond360).SetEase(Ease.Linear).SetLoops(-1);
|
||||
circleInT.DORotate(new Vector3(0,0,-360), 2f, RotateMode.FastBeyond360).SetEase(Ease.Linear).SetLoops(-1);
|
||||
// Move
|
||||
moveT.DOMoveX(50, 1, true).SetRelative().SetEase(Ease.InOutQuad).SetLoops(-1, LoopType.Yoyo);
|
||||
|
||||
// Text
|
||||
DOTween.Sequence()
|
||||
.AppendInterval(0.5f)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b763a935733eefc43b94a011eb14dde8
|
||||
timeCreated: 1427882793
|
||||
licenseType: Pro
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f8922f9ed12a9cf49a2f087e32d3fcbc
|
||||
timeCreated: 1427882493
|
||||
licenseType: Pro
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
5
Win81CompatibilityTest.Unity4/Assets/Resources.meta
Normal file
5
Win81CompatibilityTest.Unity4/Assets/Resources.meta
Normal file
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a89d72ceef7966944aa8030872fcb134
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6281789f72c6c44dba12e9ae7c5285d
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b1af86fba5f6e3548abad8f9933879ed
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
1998
Win81CompatibilityTest.Unity4/Assets/Scripts/DOTween/DOTween.XML
Normal file
1998
Win81CompatibilityTest.Unity4/Assets/Scripts/DOTween/DOTween.XML
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7ec1a0f229afbfc419425471f5f6dacb
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
BIN
Win81CompatibilityTest.Unity4/Assets/Scripts/DOTween/DOTween.dll
Normal file
BIN
Win81CompatibilityTest.Unity4/Assets/Scripts/DOTween/DOTween.dll
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6ed87a5b0ba3724eb58008c2c3cb721
|
||||
DefaultImporter:
|
||||
userData:
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0c38d443364b9844e93120edef671182
|
||||
MonoAssemblyImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
userData:
|
||||
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4aa89d5180204524593347ea36a3d263
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
@ -0,0 +1,60 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>DOTweenEditor</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:DG.DOTweenEditor.DOTweenSetupMenuItem">
|
||||
<summary>
|
||||
Not used as menu item anymore, but as a utiity function
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:DG.DOTweenEditor.DOTweenSetupMenuItem.Setup(System.Boolean)">
|
||||
<summary>
|
||||
Setups DOTween
|
||||
</summary>
|
||||
<param name="partiallySilent">If TRUE, no warning window appears in case there is no need for setup</param>
|
||||
</member>
|
||||
<member name="M:DG.DOTweenEditor.Core.EditorUtils.SetEditorTexture(UnityEngine.Texture2D,UnityEngine.FilterMode,System.Int32)">
|
||||
<summary>
|
||||
Checks that the given editor texture use the correct import settings,
|
||||
and applies them if they're incorrect.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:DG.DOTweenEditor.Core.EditorUtils.DOTweenSetupRequired">
|
||||
<summary>
|
||||
Returns TRUE if addons setup is required.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:DG.DOTweenEditor.Core.EditorUtils.AssetExists(System.String)">
|
||||
<summary>
|
||||
Returns TRUE if the file/directory at the given path exists.
|
||||
</summary>
|
||||
<param name="adbPath">Path, relative to Unity's project folder</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:DG.DOTweenEditor.Core.EditorUtils.ADBPathToFullPath(System.String)">
|
||||
<summary>
|
||||
Converts the given project-relative path to a full path,
|
||||
with backward (\) slashes).
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:DG.DOTweenEditor.Core.EditorUtils.FullPathToADBPath(System.String)">
|
||||
<summary>
|
||||
Converts the given full path to a path usable with AssetDatabase methods
|
||||
(relative to Unity's project folder, and with the correct Unity forward (/) slashes).
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:DG.DOTweenEditor.Core.EditorUtils.ConnectToSourceAsset``1(System.String,System.Boolean)">
|
||||
<summary>
|
||||
Connects to a <see cref="T:UnityEngine.ScriptableObject"/> asset.
|
||||
If the asset already exists at the given path, loads it and returns it.
|
||||
Otherwise, either returns NULL or automatically creates it before loading and returning it
|
||||
(depending on the given parameters).
|
||||
</summary>
|
||||
<typeparam name="T">Asset type</typeparam>
|
||||
<param name="adbFilePath">File path (relative to Unity's project folder)</param>
|
||||
<param name="createIfMissing">If TRUE and the requested asset doesn't exist, forces its creation</param>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0a18a3bb69df9f4183590d5f2155d6a
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b8f2f86d6fc03a42b5d66c5e9c4f70e
|
||||
DefaultImporter:
|
||||
userData:
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 47178c93d476bb242a493c756eff7058
|
||||
MonoAssemblyImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
userData:
|
||||
@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fdee443a9c94ba140bb1ae6fc47395e8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,47 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c77865a7520b4594fadb2dc5dc9031f3
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: -1
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
@ -0,0 +1,47 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 26ff4e90fc69478438790fdd730c4886
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
linearTexture: 1
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 256
|
||||
textureSettings:
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 2
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
@ -0,0 +1,47 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 85b6905729e49124ebed5fbd684b6a24
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: -1
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
@ -0,0 +1,47 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f77e3ac699f5bce4b9ec7afac5318246
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
linearTexture: 1
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 512
|
||||
textureSettings:
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 2
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
@ -0,0 +1,18 @@
|
||||
DOTween and DOTween Pro are copyright (c) 2014 Daniele Giardini - Demigiant
|
||||
|
||||
// GET STARTED //////////////////////////////////////////////
|
||||
|
||||
- After importing a new DOTween update, select DOTween's Utility Panel from the Tools menu (if it doesn't open automatically) and press the "Setup DOTween..." button to set up additional features based on your Unity version.
|
||||
- In your code, add "using DG.Tweening" to each class where you want to use DOTween.
|
||||
- You're ready to tween. Check out the links below for full documentation and license info.
|
||||
|
||||
|
||||
// LINKS ///////////////////////////////////////////////////////
|
||||
|
||||
DOTween website (documentation, examples, etc): http://dotween.demigiant.com
|
||||
DOTween license: http://dotween.demigiant.com/license.php
|
||||
DOTween repository (Google Code): https://code.google.com/p/dotween/
|
||||
|
||||
// NOTES //////////////////////////////////////////////////////
|
||||
|
||||
- DOTween's Utility Panel can be found under "Tools > DOTween Utility Panel" and also contains other useful options, plus a tab to set DOTween's preferences
|
||||
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ff55369a9cc022949bf3537b767448e3
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class SampleVector3Class : AbstractSampleClass<Vector3>
|
||||
{
|
||||
public override void SampleMethod(Vector3 value)
|
||||
{
|
||||
Debug.Log("Sample method log > " + value);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 53aed003db9d1b1479d34c275f43266c
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
@ -1,60 +1,257 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections;
|
||||
using DG.Tweening;
|
||||
using DG.Tweening.Plugins;
|
||||
using DG.Tweening.Plugins.Core;
|
||||
using DG.Tweening.Plugins.Options;
|
||||
|
||||
public class TestScene : MonoBehaviour
|
||||
{
|
||||
public Text logText;
|
||||
public Transform target;
|
||||
|
||||
string log;
|
||||
string logPrefix = "➨ Test ";
|
||||
string logPrefix = "\n➨ ";
|
||||
string successStr = "<color=#00FF00>SUCCESS</color>";
|
||||
string failStr = "<color=#FF0000>SUCCESS</color>";
|
||||
|
||||
void Start()
|
||||
{
|
||||
SampleFloatClass sampleFloatClass;
|
||||
SampleVector3Class sampleV3Class;
|
||||
ISampleClass isampleClass;
|
||||
Vector3Plugin dotweenV3Class;
|
||||
ITweenPlugin idotweenClass;
|
||||
string testId;
|
||||
|
||||
// Test A
|
||||
testId = "A";
|
||||
try {
|
||||
sampleFloatClass = new SampleFloatClass();
|
||||
log += string.Format("{0}{1} " + ((sampleFloatClass as AbstractSampleClass<float>) == null ? "failed" : "success"), logPrefix, testId);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("<color=#ff0000>{0}{1} error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
IEnumerator Start()
|
||||
{
|
||||
FloatTest();
|
||||
log += "\n";
|
||||
Vector3Test();
|
||||
log += "\n";
|
||||
DOTweenVector3Test();
|
||||
|
||||
// Test A2
|
||||
testId = "A2";
|
||||
try {
|
||||
isampleClass = new SampleFloatClass();
|
||||
log += string.Format("\n{0}{1} " + ((isampleClass as AbstractSampleClass<float>) == null ? "failed" : "success"), logPrefix, testId);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("\n<color=#ff0000>{0}{1} error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
// Test B
|
||||
testId = "B";
|
||||
try {
|
||||
sampleFloatClass = new SampleFloatClass();
|
||||
log += string.Format("\n{0}{1} " + ((AbstractSampleClass<float>)sampleFloatClass == null ? "failed" : "success"), logPrefix, testId);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("\n<color=#ff0000>{0}{1} error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
// Test B2
|
||||
testId = "B2";
|
||||
try {
|
||||
isampleClass = new SampleFloatClass();
|
||||
log += string.Format("\n{0}{1} " + ((AbstractSampleClass<float>)isampleClass == null ? "failed" : "success"), logPrefix, testId);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("\n<color=#ff0000>{0}{1} error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
|
||||
log += "\n\n<color=#00ff00>TEST ENDED</color>";
|
||||
log += "\n\n<color=#00ff00>FIRST TEST ENDED</color>";
|
||||
log += "\n\n<color=#00ff00>NOW WAITING 1 SECOND...</color>";
|
||||
logText.text = log;
|
||||
Debug.Log(log);
|
||||
Debug.Log(StripTags(log));
|
||||
|
||||
yield return new WaitForSeconds(1);
|
||||
|
||||
log += "\n\n<color=#00ff00>SPAWNING A MOVE TWEEN IN THE NEXT FRAME...</color>";
|
||||
logText.text = log;
|
||||
Debug.Log("SPAWNING A MOVE TWEEN IN THE NEXT FRAME...");
|
||||
|
||||
yield return null;
|
||||
|
||||
target.DOMove(new Vector3(3, 0, 0), 2);
|
||||
}
|
||||
|
||||
void DOTweenVector3Test()
|
||||
{
|
||||
testId = "DOVector3 Class AsCast:";
|
||||
try {
|
||||
dotweenV3Class = new Vector3Plugin();
|
||||
log += string.Format("{0}{1} " + ((dotweenV3Class as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "DOVector3 Class AsCast (object):";
|
||||
try {
|
||||
dotweenV3Class = new Vector3Plugin();
|
||||
log += string.Format("{0}{1} " + (((object)dotweenV3Class as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "DOVector3 Class PrefCast:";
|
||||
try {
|
||||
dotweenV3Class = new Vector3Plugin();
|
||||
log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)dotweenV3Class == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "DOVector3 Class PrefCast (object):";
|
||||
try {
|
||||
dotweenV3Class = new Vector3Plugin();
|
||||
log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)((object)dotweenV3Class) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "DOVector3 Interface AsCast:";
|
||||
try {
|
||||
idotweenClass = new Vector3Plugin();
|
||||
log += string.Format("{0}{1} " + ((idotweenClass as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "DOVector3 Interface AsCast (object):";
|
||||
try {
|
||||
idotweenClass = new Vector3Plugin();
|
||||
log += string.Format("{0}{1} " + (((object)idotweenClass as ABSTweenPlugin<Vector3,Vector3,VectorOptions>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "DOVector3 Interface PrefCast:";
|
||||
try {
|
||||
idotweenClass = new Vector3Plugin();
|
||||
log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)idotweenClass == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "DOVector3 Interface PrefCast (object):";
|
||||
try {
|
||||
idotweenClass = new Vector3Plugin();
|
||||
log += string.Format("{0}{1} " + ((ABSTweenPlugin<Vector3,Vector3,VectorOptions>)((object)idotweenClass) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
}
|
||||
|
||||
void Vector3Test()
|
||||
{
|
||||
testId = "Vector3 Class AsCast:";
|
||||
try {
|
||||
sampleV3Class = new SampleVector3Class();
|
||||
log += string.Format("{0}{1} " + ((sampleV3Class as AbstractSampleClass<Vector3>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Vector3 Class AsCast (object):";
|
||||
try {
|
||||
sampleV3Class = new SampleVector3Class();
|
||||
log += string.Format("{0}{1} " + (((object)sampleV3Class as AbstractSampleClass<Vector3>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Vector3 Class PrefCast:";
|
||||
try {
|
||||
sampleV3Class = new SampleVector3Class();
|
||||
log += string.Format("{0}{1} " + ((AbstractSampleClass<Vector3>)sampleV3Class == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Vector3 Class PrefCast (object):";
|
||||
try {
|
||||
sampleV3Class = new SampleVector3Class();
|
||||
log += string.Format("{0}{1} " + ((AbstractSampleClass<Vector3>)((object)sampleV3Class) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Vector3 Interface AsCast:";
|
||||
try {
|
||||
isampleClass = new SampleVector3Class();
|
||||
log += string.Format("{0}{1} " + ((isampleClass as AbstractSampleClass<Vector3>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Vector3 Interface AsCast (object):";
|
||||
try {
|
||||
isampleClass = new SampleVector3Class();
|
||||
log += string.Format("{0}{1} " + (((object)isampleClass as AbstractSampleClass<Vector3>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Vector3 Interface PrefCast:";
|
||||
try {
|
||||
isampleClass = new SampleVector3Class();
|
||||
log += string.Format("{0}{1} " + ((AbstractSampleClass<Vector3>)isampleClass == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Vector3 Interface PrefCast (object):";
|
||||
try {
|
||||
isampleClass = new SampleVector3Class();
|
||||
log += string.Format("{0}{1} " + ((AbstractSampleClass<Vector3>)((object)isampleClass) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
}
|
||||
|
||||
void FloatTest()
|
||||
{
|
||||
testId = "Float Class AsCast:";
|
||||
try {
|
||||
sampleFloatClass = new SampleFloatClass();
|
||||
log += string.Format("{0}{1} " + ((sampleFloatClass as AbstractSampleClass<float>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Float Class AsCast (object):";
|
||||
try {
|
||||
sampleFloatClass = new SampleFloatClass();
|
||||
log += string.Format("{0}{1} " + (((object)sampleFloatClass as AbstractSampleClass<float>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Float Class PrefCast:";
|
||||
try {
|
||||
sampleFloatClass = new SampleFloatClass();
|
||||
log += string.Format("{0}{1} " + ((AbstractSampleClass<float>)sampleFloatClass == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Float Class PrefCast (object):";
|
||||
try {
|
||||
sampleFloatClass = new SampleFloatClass();
|
||||
log += string.Format("{0}{1} " + ((AbstractSampleClass<float>)((object)sampleFloatClass) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Float Interface AsCast:";
|
||||
try {
|
||||
isampleClass = new SampleFloatClass();
|
||||
log += string.Format("{0}{1} " + ((isampleClass as AbstractSampleClass<float>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Float Interface AsCast (object):";
|
||||
try {
|
||||
isampleClass = new SampleFloatClass();
|
||||
log += string.Format("{0}{1} " + (((object)isampleClass as AbstractSampleClass<float>) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Float Interface PrefCast:";
|
||||
try {
|
||||
isampleClass = new SampleFloatClass();
|
||||
log += string.Format("{0}{1} " + ((AbstractSampleClass<float>)isampleClass == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
|
||||
testId = "Float Interface PrefCast (object):";
|
||||
try {
|
||||
isampleClass = new SampleFloatClass();
|
||||
log += string.Format("{0}{1} " + ((AbstractSampleClass<float>)((object)isampleClass) == null ? "{2}" : "{3}"), logPrefix, testId, failStr, successStr);
|
||||
} catch (Exception e) {
|
||||
log += string.Format("{0}{1} <color=#ff0000>error > " + e.Message + "</color>", logPrefix, testId);
|
||||
}
|
||||
}
|
||||
|
||||
string StripTags(string s)
|
||||
{
|
||||
return Regex.Replace(s, @"<[^>]*>", "");
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@ -21,7 +21,7 @@ namespace DG.Tweening
|
||||
public class DOTween
|
||||
{
|
||||
/// <summary>DOTween's version</summary>
|
||||
public static readonly string Version = "1.0.420";
|
||||
public static readonly string Version = "1.0.426";
|
||||
|
||||
///////////////////////////////////////////////
|
||||
// Options ////////////////////////////////////
|
||||
|
||||
@ -96,6 +96,40 @@ namespace DG.Tweening.Plugins.Core
|
||||
}
|
||||
|
||||
if (plugin != null) return plugin as ABSTweenPlugin<T1, T2, TPlugOptions>;
|
||||
// WP8.1 fix tries
|
||||
// if (plugin != null) {
|
||||
// ABSTweenPlugin<T1, T2, TPlugOptions> p;
|
||||
// try {
|
||||
// p = plugin as ABSTweenPlugin<T1, T2, TPlugOptions>;
|
||||
// Debug.Log("PLUGIN SUCCESS A");
|
||||
// return p;
|
||||
// } catch {
|
||||
// Debug.Log("PLUGIN FAIL A");
|
||||
// }
|
||||
// try {
|
||||
// p = (object)plugin as ABSTweenPlugin<T1, T2, TPlugOptions>;
|
||||
// Debug.Log("PLUGIN SUCCESS A2");
|
||||
// return p;
|
||||
// } catch {
|
||||
// Debug.Log("PLUGIN FAIL A2");
|
||||
// }
|
||||
// try {
|
||||
// p = (ABSTweenPlugin<T1, T2, TPlugOptions>)plugin;
|
||||
// Debug.Log("PLUGIN SUCCESS B");
|
||||
// return p;
|
||||
// } catch {
|
||||
// Debug.Log("PLUGIN FAIL B");
|
||||
// }
|
||||
// try {
|
||||
// p = (ABSTweenPlugin<T1, T2, TPlugOptions>)(object)plugin;
|
||||
// Debug.Log("PLUGIN SUCCESS B2");
|
||||
// return p;
|
||||
// } catch {
|
||||
// Debug.Log("PLUGIN FAIL B2");
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
// WP8.1 fix tries END
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -5,6 +5,7 @@ using System.Runtime.InteropServices;
|
||||
// Friends
|
||||
[assembly: InternalsVisibleTo("DOTweenEditor")]
|
||||
[assembly: InternalsVisibleTo("DOTween43")]
|
||||
[assembly: InternalsVisibleTo("DOTween46")]
|
||||
[assembly: InternalsVisibleTo("DOTweenPro")]
|
||||
[assembly: InternalsVisibleTo("DOTweenProEditor")]
|
||||
|
||||
|
||||
@ -4,6 +4,8 @@
|
||||
// License Copyright (c) Daniele Giardini.
|
||||
// This work is subject to the terms at http://dotween.demigiant.com/license.php
|
||||
|
||||
using DG.Tweening.Core;
|
||||
using DG.Tweening.Plugins.Options;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
|
||||
@ -24,7 +24,8 @@ namespace DG.DOTweenEditor.Core
|
||||
titleStyle,
|
||||
logoIconStyle;
|
||||
public static GUIStyle sideBtStyle,
|
||||
sideLogoIconBoldLabelStyle;
|
||||
sideLogoIconBoldLabelStyle,
|
||||
wordWrapTextArea;
|
||||
|
||||
// Filtered ease types to show desired eases in Inspector panels
|
||||
internal static readonly string[] FilteredEaseTypes = new[] {
|
||||
@ -159,6 +160,9 @@ namespace DG.DOTweenEditor.Core
|
||||
sideLogoIconBoldLabelStyle = new GUIStyle(boldLabelStyle);
|
||||
sideLogoIconBoldLabelStyle.alignment = TextAnchor.MiddleLeft;
|
||||
sideLogoIconBoldLabelStyle.padding.top = 6;
|
||||
|
||||
wordWrapTextArea = new GUIStyle(GUI.skin.textArea);
|
||||
wordWrapTextArea.wordWrap = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -72,10 +72,14 @@ namespace DG.DOTweenEditor
|
||||
// Additional plugin files
|
||||
// Pro plugins
|
||||
if (EditorUtils.hasPro) {
|
||||
if (Directory.Exists(projectPath + "TK2DROOT")) {
|
||||
if (Directory.GetDirectories(EditorUtils.projectPath, "TK2DROOT", SearchOption.AllDirectories).Length > 0) {
|
||||
// PRO > 2DToolkit shortcuts
|
||||
totImported += ImportAddons("Tk2d", proAddonsDir);
|
||||
}
|
||||
if (Directory.GetDirectories(EditorUtils.projectPath, "TextMesh Pro", SearchOption.AllDirectories).Length > 0) {
|
||||
// PRO > TextMeshPro shortcuts
|
||||
totImported += ImportAddons("TextMeshPro", proAddonsDir);
|
||||
}
|
||||
}
|
||||
|
||||
SetupComplete(addonsDir, proAddonsDir, totImported);
|
||||
|
||||
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