|
@@ -8,6 +8,34 @@ public class checkSize : MonoBehaviour
|
|
|
public int lg = 1;
|
|
|
|
|
|
void Update()
|
|
|
- { this.GetComponent<RectTransform>().sizeDelta = new Vector2(this.GetComponentsInChildren<RawImage>().Length*690/ lg, 450);
|
|
|
+ {
|
|
|
+ int w =750;
|
|
|
+ if(GetTexture2D.urlbase.Contains("329"))
|
|
|
+ {
|
|
|
+ this.GetComponent<RectTransform>().sizeDelta = new Vector2(this.GetComponentsInChildren<RawImage>().Length*w/ lg, 450);
|
|
|
+
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+
|
|
|
+
|
|
|
+ if(700*6>(this.GetComponentsInChildren<RawImage>().Length*w/ lg))
|
|
|
+ {
|
|
|
+ this.GetComponent<RectTransform>().sizeDelta = new Vector2(w*6, 900);
|
|
|
+
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ this.GetComponent<RectTransform>().sizeDelta = new Vector2(this.GetComponentsInChildren<RawImage>().Length*w/ lg, 900);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(700*6>(this.GetComponentsInChildren<RawImage>().Length*w/ lg))
|
|
|
+ {
|
|
|
+ this.GetComponent<RectTransform>().sizeDelta = new Vector2(w*6, 900);
|
|
|
+
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ }
|
|
|
}
|
|
|
}
|