1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2026-02-24 18:51:30 +08:00

[Utility Panel] DOTween will now correctly recognize also new free version of TextMesh Pro

This commit is contained in:
Demigiant 2017-03-07 11:36:52 +01:00
parent 9d3a003de4
commit 1a07416065
46 changed files with 16 additions and 9 deletions

View File

@ -2,6 +2,7 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using DG.Tweening; using DG.Tweening;
using UnityEngine.SceneManagement;
public class TempPro : MonoBehaviour public class TempPro : MonoBehaviour
{ {
@ -15,6 +16,11 @@ public class TempPro : MonoBehaviour
// target.GetTween().Rewind(); // target.GetTween().Rewind();
} }
void Update()
{
if (Input.GetKeyDown(KeyCode.Space)) SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
public void OnComplete() public void OnComplete()
{ {
Debug.Log("COMPLETE"); Debug.Log("COMPLETE");

View File

@ -11,15 +11,15 @@ using UnityEngine.UI;
public class TempTests : BrainBase public class TempTests : BrainBase
{ {
public Transform target; public Transform target;
public Ease ease;
public void BlendableRotateX() // Use this for initialization
IEnumerator Start ()
{ {
target.DOBlendableRotateBy(new Vector3(10, 0, 0), 1); yield return new WaitForSeconds(1);
} Tween t = target.DOMoveX(60000, 200).SetEase(ease);
t.Goto(198, true);
public void BlendableRotateY() // t.OnUpdate(()=> Debug.Log(target.position.x));
{
target.DOBlendableRotateBy(new Vector3(0, 10, 0), 1);
} }
} }

View File

@ -175,7 +175,8 @@ namespace DG.DOTweenEditor
string[] rootDirs = Directory.GetDirectories(EditorUtils.projectPath, "TextMesh Pro", SearchOption.AllDirectories); string[] rootDirs = Directory.GetDirectories(EditorUtils.projectPath, "TextMesh Pro", SearchOption.AllDirectories);
if (rootDirs.Length == 0) return false; if (rootDirs.Length == 0) return false;
foreach (string rootDir in rootDirs) { foreach (string rootDir in rootDirs) {
if (Directory.GetFiles(rootDir, "TextMeshPro.cs", SearchOption.AllDirectories).Length > 0) return true; if (Directory.GetFiles(rootDir, "TextMeshPro.cs", SearchOption.AllDirectories).Length > 0) return true; // Old payed version
if (Directory.GetFiles(rootDir, "TextMeshPro.dll", SearchOption.AllDirectories).Length > 0) return true; // New free version
} }
return false; return false;
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.