|
|
|
|
|
|
var rt = rth.rt; |
|
|
|
rt.Release(); |
|
|
|
|
|
|
|
Vector2Int scale; |
|
|
|
Vector2Int scaledSize; |
|
|
|
scale = rth.scaleFunc(maxSize); |
|
|
|
scaledSize = rth.scaleFunc(maxSize); |
|
|
|
scale = new Vector2Int( |
|
|
|
scaledSize = new Vector2Int( |
|
|
|
rt.width = Mathf.Max(scale.x, 1); |
|
|
|
rt.height = Mathf.Max(scale.y, 1); |
|
|
|
rt.width = Mathf.Max(scaledSize.x, 1); |
|
|
|
rt.height = Mathf.Max(scaledSize.y, 1); |
|
|
|
rt.Create(); |
|
|
|
} |
|
|
|
} |
|
|
|