broken again
This commit is contained in:
parent
95c989d3b7
commit
f7cffac991
|
|
@ -24,6 +24,7 @@ namespace HeavenStudio
|
|||
[SerializeField] GameObject letterboxBgGO;
|
||||
[SerializeField] RectTransform letterboxMask;
|
||||
[SerializeField] RawImage viewportTexture;
|
||||
[SerializeField] RawImage overlayTexture;
|
||||
|
||||
public static StaticCamera instance { get; private set; }
|
||||
public new Camera camera;
|
||||
|
|
@ -141,6 +142,7 @@ namespace HeavenStudio
|
|||
{
|
||||
letterboxMask.localScale = new Vector3(parentView.sizeDelta.x/16, parentView.sizeDelta.y/9, 1);
|
||||
overlayCanvas.localScale = new Vector3(parentView.sizeDelta.x/16, parentView.sizeDelta.y/9, 1);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -148,7 +150,8 @@ namespace HeavenStudio
|
|||
overlayCanvas.localScale = new Vector3(1, 1, 1);
|
||||
}
|
||||
canvas.localScale = scale;
|
||||
viewportTexture.uvRect = new Rect(tilePan.x, tilePan.y, screenTile.x, screenTile.y);
|
||||
//viewportTexture.uvRect = new Rect(tilePan.x, tilePan.y, screenTile.x, screenTile.y);
|
||||
//overlayTexture.uvRect = new Rect(tilePan.x, tilePan.y, screenTile.x, screenTile.y);
|
||||
}
|
||||
|
||||
private void UpdatePan()
|
||||
|
|
|
|||
Loading…
Reference in a new issue