private void MonitorManager_SelectedEvent(MonitorView monitorView) { var texture = monitorView.Texture; rawImage.texture = texture; rawImage.rectTransform.sizeDelta = EMath.GetShrinkFitSize(new Vector2(texture.width, texture.height), canvasScaler.referenceResolution); }
public void OnSelected(MonitorView monitorView) { SelectedEvent?.Invoke(monitorView); }