Compare commits
No commits in common. "3dafb6e8a9d56347f0abc860353b6fd1af0d2850" and "f933c8d1c4c3695c388973205272353f6a10abd9" have entirely different histories.
3dafb6e8a9
...
f933c8d1c4
@ -7,7 +7,6 @@ using TMPro;
|
|||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
using DG.Tweening;
|
using DG.Tweening;
|
||||||
using System;
|
using System;
|
||||||
using Org.BouncyCastle.Asn1;
|
|
||||||
|
|
||||||
namespace QFramework.Example
|
namespace QFramework.Example
|
||||||
{
|
{
|
||||||
@ -170,9 +169,8 @@ namespace QFramework.Example
|
|||||||
float sizeY = ((float)Screen.height / (float)Screen.width) * size;
|
float sizeY = ((float)Screen.height / (float)Screen.width) * size;
|
||||||
ScreenShotPainter.instance.SetEraserSize(size, sizeY);
|
ScreenShotPainter.instance.SetEraserSize(size, sizeY);
|
||||||
|
|
||||||
float width = 1920 / size;
|
float width = Screen.width / size;
|
||||||
float height = 1920 / size;//不缩放y轴了
|
float height = Screen.width / size;//不缩放y轴了
|
||||||
Debug.LogError($"{width} : {height}");
|
|
||||||
Icon.transform.localScale = new Vector3(width / Icon.rectTransform.rect.width, height / Icon.rectTransform.rect.height, 1);
|
Icon.transform.localScale = new Vector3(width / Icon.rectTransform.rect.width, height / Icon.rectTransform.rect.height, 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -182,8 +180,8 @@ namespace QFramework.Example
|
|||||||
float sizeY = ((float)Screen.height / (float)Screen.width) * size;
|
float sizeY = ((float)Screen.height / (float)Screen.width) * size;
|
||||||
ScreenShotPainter.instance.SetPaintingSize(size, sizeY);
|
ScreenShotPainter.instance.SetPaintingSize(size, sizeY);
|
||||||
|
|
||||||
float width = 1920 / size;
|
float width = Screen.width / size;
|
||||||
float height = 1920 / size;//不缩放y轴了
|
float height = Screen.width / size;//不缩放y轴了
|
||||||
Icon.transform.localScale = new Vector3(width / Icon.rectTransform.rect.width, height / Icon.rectTransform.rect.height, 1);
|
Icon.transform.localScale = new Vector3(width / Icon.rectTransform.rect.width, height / Icon.rectTransform.rect.height, 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user