1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00
This commit is contained in:
Demigiant 2018-07-17 12:35:27 +02:00
parent cbc30f3aa1
commit 8bb776f178
2 changed files with 5 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public class RectTransformConversionTests : BrainBase
Vector2 bPivotDerivedOffset = new Vector2(b.rect.width * 0.5f + b.rect.xMin, b.rect.height * 0.5f + b.rect.yMin); Vector2 bPivotDerivedOffset = new Vector2(b.rect.width * 0.5f + b.rect.xMin, b.rect.height * 0.5f + b.rect.yMin);
Debug.Log(bPivotDerivedOffset); Debug.Log(bPivotDerivedOffset);
b.anchoredPosition = b.anchoredPosition + localPoint - bPivotDerivedOffset; b.anchoredPosition = b.anchoredPosition + localPoint - bPivotDerivedOffset;
Debug.Log(b.anchoredPosition + " - " + DOTweenUtils46.SwitchToRectTransform(a, b)); // Debug.Log(b.anchoredPosition + " - " + DOTweenUtils46.SwitchToRectTransform(a, b));
} }
string ArrayToString(IList list) string ArrayToString(IList list)

View File

@ -110,7 +110,10 @@ namespace DG.DOTweenEditor.UI
GUILayout.EndHorizontal(); GUILayout.EndHorizontal();
} else { } else {
if (_isModulesMode) { if (_isModulesMode) {
if (DOTweenUtilityWindowModules.Draw()) _isModulesMode = false; if (DOTweenUtilityWindowModules.Draw()) {
_setupRequired = EditorUtils.DOTweenSetupRequired();
_isModulesMode = false;
}
} else { } else {
Rect areaRect = new Rect(0, 0, _headerSize.x, 30); Rect areaRect = new Rect(0, 0, _headerSize.x, 30);
_selectedTab = UnityEngine.GUI.Toolbar(areaRect, _selectedTab, _tabLabels); _selectedTab = UnityEngine.GUI.Toolbar(areaRect, _selectedTab, _tabLabels);