mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 01:36:05 +08:00
- minor
This commit is contained in:
parent
cbc30f3aa1
commit
8bb776f178
@ -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)
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user