Example #1
0
 protected void OnVerticesDirty()
 {
     if (this.sprite == null)
     {
         this.sprite = EmptySprite.Get();
     }
 }
Example #2
0
 /// <summary>
 /// Initializes this instance.
 /// </summary>
 void Init()
 {
     FixTexCoordsInCanvas();
     this.m_OnDirtyVertsCallback += OnVerticesDirty;
     this.preserveAspect          = false;
     this.material = null;
     if (this.sprite == null)
     {
         this.sprite = EmptySprite.Get();
     }
 }