1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00

Fixed incorrect assembly path detection

This commit is contained in:
Daniele Giardini 2015-05-06 14:14:34 +02:00
parent d63a502581
commit f7debfed70
57 changed files with 127 additions and 56 deletions

View File

@ -781,12 +781,12 @@
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.PathGetPoint(DG.Tweening.Tween,System.Single)"> <member name="M:DG.Tweening.TweenExtensions.PathGetPoint(DG.Tweening.Tween,System.Single)">
<summary> <summary>
Returns the a point on a path (returns <code>Vector3.zero</code> if this is not a path tween, if the tween is invalid, or if the path is not yet initialized), Returns a point on a path based on the given path percentage
based on the given path percentage (0 to 1). (returns <code>Vector3.zero</code> if this is not a path tween, if the tween is invalid, or if the path is not yet initialized)
A path is initialized after its tween starts, or immediately if the tween was created with the Path Editor (DOTween Pro feature). A path is initialized after its tween starts, or immediately if the tween was created with the Path Editor (DOTween Pro feature).
You can force a path to be initialized by calling <code>myTween.ForceInit()</code>. You can force a path to be initialized by calling <code>myTween.ForceInit()</code>.
</summary> </summary>
<param name="pathPercentage">Percentage of the path on which to get the point (0 to 1)</param> <param name="pathPercentage">Percentage of the path (0 to 1) on which to get the point</param>
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.PathLength(DG.Tweening.Tween)"> <member name="M:DG.Tweening.TweenExtensions.PathLength(DG.Tweening.Tween)">
<summary> <summary>

View File

@ -56,5 +56,10 @@
<param name="adbFilePath">File path (relative to Unity's project folder)</param> <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> <param name="createIfMissing">If TRUE and the requested asset doesn't exist, forces its creation</param>
</member> </member>
<member name="M:DG.DOTweenEditor.Core.EditorUtils.GetAssemblyFilePath(System.Reflection.Assembly)">
<summary>
Full path for the given loaded assembly, assembly file included
</summary>
</member>
</members> </members>
</doc> </doc>

View File

@ -781,12 +781,12 @@
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.PathGetPoint(DG.Tweening.Tween,System.Single)"> <member name="M:DG.Tweening.TweenExtensions.PathGetPoint(DG.Tweening.Tween,System.Single)">
<summary> <summary>
Returns the a point on a path (returns <code>Vector3.zero</code> if this is not a path tween, if the tween is invalid, or if the path is not yet initialized), Returns a point on a path based on the given path percentage
based on the given path percentage (0 to 1). (returns <code>Vector3.zero</code> if this is not a path tween, if the tween is invalid, or if the path is not yet initialized)
A path is initialized after its tween starts, or immediately if the tween was created with the Path Editor (DOTween Pro feature). A path is initialized after its tween starts, or immediately if the tween was created with the Path Editor (DOTween Pro feature).
You can force a path to be initialized by calling <code>myTween.ForceInit()</code>. You can force a path to be initialized by calling <code>myTween.ForceInit()</code>.
</summary> </summary>
<param name="pathPercentage">Percentage of the path on which to get the point (0 to 1)</param> <param name="pathPercentage">Percentage of the path (0 to 1) on which to get the point</param>
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.PathLength(DG.Tweening.Tween)"> <member name="M:DG.Tweening.TweenExtensions.PathLength(DG.Tweening.Tween)">
<summary> <summary>

View File

@ -56,5 +56,10 @@
<param name="adbFilePath">File path (relative to Unity's project folder)</param> <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> <param name="createIfMissing">If TRUE and the requested asset doesn't exist, forces its creation</param>
</member> </member>
<member name="M:DG.DOTweenEditor.Core.EditorUtils.GetAssemblyFilePath(System.Reflection.Assembly)">
<summary>
Full path for the given loaded assembly, assembly file included
</summary>
</member>
</members> </members>
</doc> </doc>

View File

@ -781,12 +781,12 @@
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.PathGetPoint(DG.Tweening.Tween,System.Single)"> <member name="M:DG.Tweening.TweenExtensions.PathGetPoint(DG.Tweening.Tween,System.Single)">
<summary> <summary>
Returns the a point on a path (returns <code>Vector3.zero</code> if this is not a path tween, if the tween is invalid, or if the path is not yet initialized), Returns a point on a path based on the given path percentage
based on the given path percentage (0 to 1). (returns <code>Vector3.zero</code> if this is not a path tween, if the tween is invalid, or if the path is not yet initialized)
A path is initialized after its tween starts, or immediately if the tween was created with the Path Editor (DOTween Pro feature). A path is initialized after its tween starts, or immediately if the tween was created with the Path Editor (DOTween Pro feature).
You can force a path to be initialized by calling <code>myTween.ForceInit()</code>. You can force a path to be initialized by calling <code>myTween.ForceInit()</code>.
</summary> </summary>
<param name="pathPercentage">Percentage of the path on which to get the point (0 to 1)</param> <param name="pathPercentage">Percentage of the path (0 to 1) on which to get the point</param>
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.PathLength(DG.Tweening.Tween)"> <member name="M:DG.Tweening.TweenExtensions.PathLength(DG.Tweening.Tween)">
<summary> <summary>

View File

@ -56,5 +56,10 @@
<param name="adbFilePath">File path (relative to Unity's project folder)</param> <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> <param name="createIfMissing">If TRUE and the requested asset doesn't exist, forces its creation</param>
</member> </member>
<member name="M:DG.DOTweenEditor.Core.EditorUtils.GetAssemblyFilePath(System.Reflection.Assembly)">
<summary>
Full path for the given loaded assembly, assembly file included
</summary>
</member>
</members> </members>
</doc> </doc>

View File

@ -4,10 +4,9 @@
<name>DemiLib</name> <name>DemiLib</name>
</assembly> </assembly>
<members> <members>
<member name="T:DG.DemiLib.DeSkinColor"> <member name="F:DG.DemiLib.Core.GUIUtils.isProSkin">
<summary> <summary>
Contains both free and pro skins color variations, Set when calling <code>DeGUIManage.BeginGUI</code>
and automatically returns the correct one when converted to Color
</summary> </summary>
</member> </member>
<member name="T:DG.DemiLib.DeColorPalette"> <member name="T:DG.DemiLib.DeColorPalette">
@ -27,9 +26,10 @@
Content colors Content colors
</summary> </summary>
</member> </member>
<member name="F:DG.DemiLib.Core.GUIUtils.isProSkin"> <member name="T:DG.DemiLib.DeSkinColor">
<summary> <summary>
Set when calling <code>DeGUIManage.BeginGUI</code> Contains both free and pro skins color variations,
and automatically returns the correct one when converted to Color
</summary> </summary>
</member> </member>
</members> </members>

View File

@ -4,6 +4,16 @@
<name>DemiEditor</name> <name>DemiEditor</name>
</assembly> </assembly>
<members> <members>
<member name="T:DG.DemiEditor.TextureExtensions">
<summary>
Texture extensions
</summary>
</member>
<member name="M:DG.DemiEditor.TextureExtensions.SetFormat(UnityEngine.Texture2D,UnityEngine.FilterMode,System.Int32)">
<summary>
Checks that the texture uses the correct import settings, and applies them if they're incorrect.
</summary>
</member>
<member name="T:DG.DemiEditor.DeGUI"> <member name="T:DG.DemiEditor.DeGUI">
<summary> <summary>
Global Demigiant GUI manager Global Demigiant GUI manager
@ -36,6 +46,31 @@
(or resets them to the default ones if NULL) (or resets them to the default ones if NULL)
</summary> </summary>
</member> </member>
<member name="T:DG.DemiEditor.AssemblyExtensions">
<summary>
Assembly extensions
</summary>
</member>
<member name="M:DG.DemiEditor.AssemblyExtensions.ADBDir(System.Reflection.Assembly)">
<summary>AssetDatabase path to the assembly directory, without final slash</summary>
</member>
<member name="T:DG.DemiEditor.DeFileUtils">
<summary>
File utils
</summary>
</member>
<member name="F:DG.DemiEditor.DeFileUtils.ADBPathSlash">
<summary>Path slash for AssetDatabase format</summary>
</member>
<member name="F:DG.DemiEditor.DeFileUtils.ADBPathSlashToReplace">
<summary>Path slash to replace for AssetDatabase format</summary>
</member>
<member name="F:DG.DemiEditor.DeFileUtils.PathSlash">
<summary>Current OS path slash</summary>
</member>
<member name="F:DG.DemiEditor.DeFileUtils.PathSlashToReplace">
<summary>Path slash to replace on current OS</summary>
</member>
<member name="T:DG.DemiEditor.DeStylePalette"> <member name="T:DG.DemiEditor.DeStylePalette">
<summary> <summary>
Stores a GUIStyle palette, which can be passed to default DeGUI layouts when calling <code>DeGUI.BeginGUI</code>, Stores a GUIStyle palette, which can be passed to default DeGUI layouts when calling <code>DeGUI.BeginGUI</code>,
@ -134,6 +169,16 @@
Sets the margin of the style Sets the margin of the style
</summary> </summary>
</member> </member>
<member name="M:DG.DemiEditor.DeGUIExtensions.MarginLeft(UnityEngine.GUIStyle,System.Int32)">
<summary>
Sets the left margin of the style
</summary>
</member>
<member name="M:DG.DemiEditor.DeGUIExtensions.MarginRight(UnityEngine.GUIStyle,System.Int32)">
<summary>
Sets the right margin of the style
</summary>
</member>
<member name="M:DG.DemiEditor.DeGUIExtensions.MarginTop(UnityEngine.GUIStyle,System.Int32)"> <member name="M:DG.DemiEditor.DeGUIExtensions.MarginTop(UnityEngine.GUIStyle,System.Int32)">
<summary> <summary>
Sets the top margin of the style Sets the top margin of the style
@ -194,23 +239,6 @@
Sets the stretchWidth property of the style Sets the stretchWidth property of the style
</summary> </summary>
</member> </member>
<member name="T:DG.DemiEditor.DeFileUtils">
<summary>
File utils
</summary>
</member>
<member name="F:DG.DemiEditor.DeFileUtils.ADBPathSlash">
<summary>Path slash for AssetDatabase format</summary>
</member>
<member name="F:DG.DemiEditor.DeFileUtils.ADBPathSlashToReplace">
<summary>Path slash to replace for AssetDatabase format</summary>
</member>
<member name="F:DG.DemiEditor.DeFileUtils.PathSlash">
<summary>Current OS path slash</summary>
</member>
<member name="F:DG.DemiEditor.DeFileUtils.PathSlashToReplace">
<summary>Path slash to replace on current OS</summary>
</member>
<member name="T:DG.DemiEditor.DeGUILayout"> <member name="T:DG.DemiEditor.DeGUILayout">
<summary> <summary>
GUILayout methods GUILayout methods
@ -229,6 +257,9 @@
<summary>Button that can be toggled on and off</summary> <summary>Button that can be toggled on and off</summary>
<summary>Button that can be toggled on and off</summary> <summary>Button that can be toggled on and off</summary>
</member> </member>
<member name="M:DG.DemiEditor.DeGUILayout.ToolbarFoldoutButton(System.Boolean,System.String)">
<summary>Toolbar foldout button</summary>
</member>
<member name="M:DG.DemiEditor.DeGUILayout.ToggleButton(System.Boolean,System.String,UnityEngine.GUILayoutOption[])"> <member name="M:DG.DemiEditor.DeGUILayout.ToggleButton(System.Boolean,System.String,UnityEngine.GUILayoutOption[])">
<summary>Button that can be toggled on and off</summary> <summary>Button that can be toggled on and off</summary>
</member> </member>
@ -281,25 +312,22 @@
<member name="M:DG.DemiEditor.DeGUILayout.Toolbar(System.String,UnityEngine.Color,UnityEngine.GUIStyle,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[])"> <member name="M:DG.DemiEditor.DeGUILayout.Toolbar(System.String,UnityEngine.Color,UnityEngine.GUIStyle,UnityEngine.GUIStyle,UnityEngine.GUILayoutOption[])">
<summary>A toolbar with a label</summary> <summary>A toolbar with a label</summary>
</member> </member>
<member name="M:DG.DemiEditor.DeGUILayout.BeginVBox(UnityEngine.GUIStyle)">
<summary>Vertical box layout with style and color options</summary>
</member>
<member name="M:DG.DemiEditor.DeGUILayout.BeginVBox(System.Nullable{UnityEngine.Color},UnityEngine.GUIStyle)">
<summary>Vertical box layout with style and color options</summary>
</member>
<member name="M:DG.DemiEditor.DeGUILayout.EndVBox">
<summary>End vertical box layout</summary>
</member>
<member name="M:DG.DemiEditor.DeGUILayout.HorizontalDivider(System.Nullable{UnityEngine.Color},System.Int32,System.Int32,System.Int32)"> <member name="M:DG.DemiEditor.DeGUILayout.HorizontalDivider(System.Nullable{UnityEngine.Color},System.Int32,System.Int32,System.Int32)">
<summary>Divider</summary> <summary>Divider</summary>
</member> </member>
<member name="T:DG.DemiEditor.AssemblyExtensions"> <member name="T:DG.DemiEditor.DeSkinStyle">
<summary> <summary>
Assembly extensions Contains both free and pro skins GUIStyle variations,
</summary> and automatically returns the correct one when converted to GUIStyle
</member>
<member name="M:DG.DemiEditor.AssemblyExtensions.ADBDir(System.Reflection.Assembly)">
<summary>AssetDatabase path to the assembly, without final slash</summary>
</member>
<member name="T:DG.DemiEditor.TextureExtensions">
<summary>
Texture extensions
</summary>
</member>
<member name="M:DG.DemiEditor.TextureExtensions.SetFormat(UnityEngine.Texture2D,UnityEngine.FilterMode,System.Int32)">
<summary>
Checks that the texture uses the correct import settings, and applies them if they're incorrect.
</summary> </summary>
</member> </member>
</members> </members>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 B

After

Width:  |  Height:  |  Size: 107 B

View File

@ -32,7 +32,7 @@ namespace DG.Tweening
public class DOTween public class DOTween
{ {
/// <summary>DOTween's version</summary> /// <summary>DOTween's version</summary>
public static readonly string Version = "1.0.665"; public static readonly string Version = "1.0.675";
/////////////////////////////////////////////// ///////////////////////////////////////////////
// Options //////////////////////////////////// // Options ////////////////////////////////////

View File

@ -141,6 +141,27 @@ namespace DG.DOTweenEditor.Core
return source; return source;
} }
/// <summary>
/// Full path for the given loaded assembly, assembly file included
/// </summary>
public static string GetAssemblyFilePath(Assembly assembly)
{
string codeBase = assembly.CodeBase;
UriBuilder uri = new UriBuilder(codeBase);
string path = Uri.UnescapeDataString(uri.Path);
if (path.Substring(path.Length - 3) == "dll") return path;
// string codeBase = assembly.CodeBase;
// UriBuilder uri = new UriBuilder(codeBase);
// string path = Path.GetDirectoryName(Uri.UnescapeDataString(uri.Path));
// string lastChar = path.Substring(path.Length - 4);
// if (lastChar == "dll") return path;
// Invalid path, use Location
return Path.GetFullPath(assembly.Location);
}
// =================================================================================== // ===================================================================================
// METHODS --------------------------------------------------------------------------- // METHODS ---------------------------------------------------------------------------
@ -161,18 +182,20 @@ namespace DG.DOTweenEditor.Core
// AssetDatabase formatted path to DOTween's Editor folder // AssetDatabase formatted path to DOTween's Editor folder
static void StoreEditorADBDir() static void StoreEditorADBDir()
{ {
string codeBase = Assembly.GetExecutingAssembly().CodeBase; // string codeBase = Assembly.GetExecutingAssembly().CodeBase;
UriBuilder uri = new UriBuilder(codeBase); // UriBuilder uri = new UriBuilder(codeBase);
string fullPath = Path.GetDirectoryName(Uri.UnescapeDataString(uri.Path)); // string fullPath = Path.GetDirectoryName(Uri.UnescapeDataString(uri.Path));
string fullPath = Path.GetDirectoryName(GetAssemblyFilePath(Assembly.GetExecutingAssembly()));
string adbPath = fullPath.Substring(Application.dataPath.Length + 1); string adbPath = fullPath.Substring(Application.dataPath.Length + 1);
_editorADBDir = adbPath.Replace("\\", "/") + "/"; _editorADBDir = adbPath.Replace("\\", "/") + "/";
} }
static void StoreDOTweenDirs() static void StoreDOTweenDirs()
{ {
string codeBase = Assembly.GetExecutingAssembly().CodeBase; // string codeBase = Assembly.GetExecutingAssembly().CodeBase;
UriBuilder uri = new UriBuilder(codeBase); // UriBuilder uri = new UriBuilder(codeBase);
_dotweenDir = Path.GetDirectoryName(Uri.UnescapeDataString(uri.Path)); // _dotweenDir = Path.GetDirectoryName(Uri.UnescapeDataString(uri.Path));
_dotweenDir = Path.GetDirectoryName(GetAssemblyFilePath(Assembly.GetExecutingAssembly()));
string pathSeparator = _dotweenDir.IndexOf("/") != -1 ? "/" : "\\"; string pathSeparator = _dotweenDir.IndexOf("/") != -1 ? "/" : "\\";
_dotweenDir = _dotweenDir.Substring(0, _dotweenDir.LastIndexOf(pathSeparator) + 1); _dotweenDir = _dotweenDir.Substring(0, _dotweenDir.LastIndexOf(pathSeparator) + 1);

View File

@ -781,12 +781,12 @@
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.PathGetPoint(DG.Tweening.Tween,System.Single)"> <member name="M:DG.Tweening.TweenExtensions.PathGetPoint(DG.Tweening.Tween,System.Single)">
<summary> <summary>
Returns the a point on a path (returns <code>Vector3.zero</code> if this is not a path tween, if the tween is invalid, or if the path is not yet initialized), Returns a point on a path based on the given path percentage
based on the given path percentage (0 to 1). (returns <code>Vector3.zero</code> if this is not a path tween, if the tween is invalid, or if the path is not yet initialized)
A path is initialized after its tween starts, or immediately if the tween was created with the Path Editor (DOTween Pro feature). A path is initialized after its tween starts, or immediately if the tween was created with the Path Editor (DOTween Pro feature).
You can force a path to be initialized by calling <code>myTween.ForceInit()</code>. You can force a path to be initialized by calling <code>myTween.ForceInit()</code>.
</summary> </summary>
<param name="pathPercentage">Percentage of the path on which to get the point (0 to 1)</param> <param name="pathPercentage">Percentage of the path (0 to 1) on which to get the point</param>
</member> </member>
<member name="M:DG.Tweening.TweenExtensions.PathLength(DG.Tweening.Tween)"> <member name="M:DG.Tweening.TweenExtensions.PathLength(DG.Tweening.Tween)">
<summary> <summary>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -56,5 +56,10 @@
<param name="adbFilePath">File path (relative to Unity's project folder)</param> <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> <param name="createIfMissing">If TRUE and the requested asset doesn't exist, forces its creation</param>
</member> </member>
<member name="M:DG.DOTweenEditor.Core.EditorUtils.GetAssemblyFilePath(System.Reflection.Assembly)">
<summary>
Full path for the given loaded assembly, assembly file included
</summary>
</member>
</members> </members>
</doc> </doc>