mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
fix missing reference errors in tooltip
This commit is contained in:
parent
2a87dd3aff
commit
9229304c52
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ namespace HeavenStudio.Editor
|
|||
[SerializeField] public Canvas MainCanvas;
|
||||
[SerializeField] public Camera EditorCamera;
|
||||
|
||||
[SerializeField] public GameObject EditorLetterbox;
|
||||
// [SerializeField] public GameObject EditorLetterbox;
|
||||
[SerializeField] public GameObject GameLetterbox;
|
||||
|
||||
[Header("Rect")]
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace HeavenStudio.Editor
|
|||
private void Update()
|
||||
{
|
||||
Vector3 anchoredPosition = Input.mousePosition;
|
||||
Camera camera = Camera.main;
|
||||
Camera camera = Editor.instance.EditorCamera;
|
||||
Vector3 canvasScale = Editor.instance.MainCanvas.transform.localScale;
|
||||
Vector2 scale = new Vector2(canvasScale.x, canvasScale.y);
|
||||
float toolTipScale = camera.pixelWidth / 1280f;
|
||||
|
|
Loading…
Reference in a new issue