TrackGraphic() public static method

public static TrackGraphic ( Graphic g ) : void
g Graphic
return void
Example #1
0
        /// <summary>
        /// Mark the Graphic and the canvas as having been changed.
        /// </summary>
        protected override void OnEnable()
        {
            base.OnEnable();
            CacheCanvas();
            GraphicRegistry.RegisterGraphicForCanvas(canvas, this);

#if UNITY_EDITOR
            GraphicRebuildTracker.TrackGraphic(this);
#endif
            SetAllDirty();
        }
Example #2
0
 protected override void OnEnable()
 {
     base.OnEnable();
     this.CacheCanvas();
     GraphicRegistry.RegisterGraphicForCanvas(this.canvas, this);
     GraphicRebuildTracker.TrackGraphic(this);
     if (s_WhiteTexture == null)
     {
         s_WhiteTexture = Texture2D.whiteTexture;
     }
     this.SetAllDirty();
 }
        /// <summary>
        /// Mark the Graphic and the canvas as having been changed.
        /// </summary>
        protected override void OnEnable()
        {
            base.OnEnable();
            CacheCanvas();
            GraphicRegistry.RegisterGraphicForCanvas(canvas, this);

#if UNITY_EDITOR
            GraphicRebuildTracker.TrackGraphic(this);
#endif
            if (s_WhiteTexture == null)
            {
                s_WhiteTexture = Texture2D.whiteTexture;
            }

            SetAllDirty();
        }