protected void OnVerticesDirty() { if (this.sprite == null) { this.sprite = EmptySprite.Get(); } }
/// <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(); } }