mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 17:26:03 +08:00
Fix for Unity 5.0.2
This commit is contained in:
parent
6fda9c7767
commit
125c38f6b5
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.
@ -32,7 +32,7 @@ namespace DG.Tweening
|
||||
public class DOTween
|
||||
{
|
||||
/// <summary>DOTween's version</summary>
|
||||
public static readonly string Version = "1.0.716";
|
||||
public static readonly string Version = "1.0.720";
|
||||
|
||||
///////////////////////////////////////////////
|
||||
// Options ////////////////////////////////////
|
||||
|
||||
@ -34,7 +34,7 @@ namespace DG.DOTweenEditor.Core
|
||||
get
|
||||
{
|
||||
if (_logo == null) {
|
||||
_logo = Resources.LoadAssetAtPath("Assets/" + EditorUtils.editorADBDir + "Imgs/DOTweenIcon.png", typeof(Texture2D)) as Texture2D;
|
||||
_logo = AssetDatabase.LoadAssetAtPath("Assets/" + EditorUtils.editorADBDir + "Imgs/DOTweenIcon.png", typeof(Texture2D)) as Texture2D;
|
||||
EditorUtils.SetEditorTexture(_logo, FilterMode.Bilinear, 128);
|
||||
}
|
||||
return _logo;
|
||||
|
||||
@ -132,11 +132,11 @@ namespace DG.DOTweenEditor.Core
|
||||
if (createIfMissing) CreateScriptableAsset<T>(adbFilePath);
|
||||
else return null;
|
||||
}
|
||||
T source = (T)Resources.LoadAssetAtPath(adbFilePath, typeof(T));
|
||||
T source = (T)AssetDatabase.LoadAssetAtPath(adbFilePath, typeof(T));
|
||||
if (source == null) {
|
||||
// Source changed (or editor file was moved from outside of Unity): overwrite it
|
||||
CreateScriptableAsset<T>(adbFilePath);
|
||||
source = (T)Resources.LoadAssetAtPath(adbFilePath, typeof(T));
|
||||
source = (T)AssetDatabase.LoadAssetAtPath(adbFilePath, typeof(T));
|
||||
}
|
||||
return source;
|
||||
}
|
||||
|
||||
@ -89,11 +89,11 @@ namespace DG.DOTweenEditor
|
||||
else _innerTitle += "\nDOTweenPro not installed";
|
||||
|
||||
if (_headerImg == null) {
|
||||
_headerImg = Resources.LoadAssetAtPath("Assets/" + EditorUtils.editorADBDir + "Imgs/Header.jpg", typeof(Texture2D)) as Texture2D;
|
||||
_headerImg = AssetDatabase.LoadAssetAtPath("Assets/" + EditorUtils.editorADBDir + "Imgs/Header.jpg", typeof(Texture2D)) as Texture2D;
|
||||
EditorUtils.SetEditorTexture(_headerImg, FilterMode.Bilinear, 512);
|
||||
_headerSize.x = _WinSize.x;
|
||||
_headerSize.y = (int)((_WinSize.x * _headerImg.height) / _headerImg.width);
|
||||
_footerImg = Resources.LoadAssetAtPath("Assets/" + EditorUtils.editorADBDir + (EditorGUIUtility.isProSkin ? "Imgs/Footer.png" : "Imgs/Footer_dark.png"), typeof(Texture2D)) as Texture2D;
|
||||
_footerImg = AssetDatabase.LoadAssetAtPath("Assets/" + EditorUtils.editorADBDir + (EditorGUIUtility.isProSkin ? "Imgs/Footer.png" : "Imgs/Footer_dark.png"), typeof(Texture2D)) as Texture2D;
|
||||
EditorUtils.SetEditorTexture(_footerImg, FilterMode.Bilinear, 256);
|
||||
_footerSize.x = _WinSize.x;
|
||||
_footerSize.y = (int)((_WinSize.x * _footerImg.height) / _footerImg.width);
|
||||
|
||||
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