Пример #1
0
    private void SetImageDisplay()
    {
        RectTransform rectTransform = outputImage.GetComponent <RectTransform>();

        rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical,
                                                rectTransform.rect.width * _tesseractDriver.GetHighlightedTexture().height / _tesseractDriver.GetHighlightedTexture().width);
        outputImage.texture = _tesseractDriver.GetHighlightedTexture();
    }
Пример #2
0
 private void SetImageDisplay()
 {
     _output.texture = _tesseractDriver.GetHighlightedTexture();
     _output.gameObject.SetActive(true);
 }