private void ViewportCallback(int width, int height) { Width = width; Height = height; ResizeCollider(); ViewportChangedEvent?.Invoke(width, height); StartCoroutine(RedrawCoroutine(image)); }
private void ViewportCallback(int width, int height) { CurrentRenderSize = new Vector2Int(width, height); ViewportChangedEvent?.Invoke(width, height); StartCoroutine(RedrawCoroutine()); }