Beispiel #1
0
 // Token: 0x0600042A RID: 1066 RVA: 0x00014DB0 File Offset: 0x00012FB0
 private void BuildCanvas()
 {
     global::UnityEngine.Canvas canvas = this._Canvas = new global::UnityEngine.GameObject().AddComponent <global::UnityEngine.Canvas>();
     canvas.renderMode = 2;
     canvas.transform.SetParent(base.transform, false);
     canvas.GetComponent <global::UnityEngine.RectTransform>().SetSizeWithCurrentAnchors(0, 950f);
     canvas.GetComponent <global::UnityEngine.RectTransform>().SetSizeWithCurrentAnchors(1, 950f);
     canvas.transform.localPosition = new global::UnityEngine.Vector3(0f, -0.02725995f, 0.0279f);
     canvas.transform.localRotation = global::UnityEngine.Quaternion.Euler(30f, 180f, 180f);
     canvas.transform.localScale    = new global::UnityEngine.Vector3(4.930151E-05f, 4.930148E-05f, 0f);
     canvas.gameObject.layer        = 0;
     this._AlphaConcealer           = global::UnityEngine.GameObject.CreatePrimitive(0);
     this._AlphaConcealer.transform.SetParent(base.transform, false);
     this._AlphaConcealer.transform.localScale    = new global::UnityEngine.Vector3(0.05f, 0f, 0.05f);
     this._AlphaConcealer.transform.localPosition = new global::UnityEngine.Vector3(0f, -0.0303f, 0.0142f);
     this._AlphaConcealer.transform.localRotation = global::UnityEngine.Quaternion.Euler(60f, 0f, 0f);
     this._AlphaConcealer.GetComponent <global::UnityEngine.Collider>().enabled = false;
 }
Beispiel #2
0
 // Token: 0x06000393 RID: 915 RVA: 0x00012C28 File Offset: 0x00010E28
 private bool IsUnprocessed(global::UnityEngine.Canvas c)
 {
     return(c.renderMode == null || (c.renderMode == 1 && c.worldCamera != this._VRGUICamera && c.worldCamera.targetTexture == null));
 }
Beispiel #3
0
 // Token: 0x060002E8 RID: 744 RVA: 0x000111CC File Offset: 0x0000F3CC
 public virtual bool IsIgnoredCanvas(global::UnityEngine.Canvas canvas)
 {
     return(false);
 }