mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2026-02-11 17:48:47 +08:00
[Utility Panel] DOTween will now correctly recognize also new free version of TextMesh Pro
This commit is contained in:
parent
9d3a003de4
commit
1a07416065
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.
Binary file not shown.
@ -2,6 +2,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DG.Tweening;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class TempPro : MonoBehaviour
|
||||
{
|
||||
@ -15,6 +16,11 @@ public class TempPro : MonoBehaviour
|
||||
// target.GetTween().Rewind();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Space)) SceneManager.LoadScene(SceneManager.GetActiveScene().name);
|
||||
}
|
||||
|
||||
public void OnComplete()
|
||||
{
|
||||
Debug.Log("COMPLETE");
|
||||
|
||||
Binary file not shown.
@ -11,15 +11,15 @@ using UnityEngine.UI;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
public void BlendableRotateY()
|
||||
{
|
||||
target.DOBlendableRotateBy(new Vector3(0, 10, 0), 1);
|
||||
yield return new WaitForSeconds(1);
|
||||
Tween t = target.DOMoveX(60000, 200).SetEase(ease);
|
||||
t.Goto(198, true);
|
||||
// t.OnUpdate(()=> Debug.Log(target.position.x));
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@ -175,7 +175,8 @@ namespace DG.DOTweenEditor
|
||||
string[] rootDirs = Directory.GetDirectories(EditorUtils.projectPath, "TextMesh Pro", SearchOption.AllDirectories);
|
||||
if (rootDirs.Length == 0) return false;
|
||||
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;
|
||||
}
|
||||
|
||||
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