示例#1
0
 protected override void Awake()
 {
     Clear();
     UpdateMaterial();
     if (_vectorGraphics != null)
     {
         _vectorGraphics.AddReference(this);
     }
     base.Awake();
 }
示例#2
0
        // We have to clear editor data and load runtime data
        // Also it handles duplicating game objects
        protected override void Awake()
        {
            base.Awake();
            CacheComponents();
            meshFilter.sharedMesh = null;
            if (_vectorGraphics != null)
            {
                _vectorGraphics.AddReference(this);
            }

            Clear();
            PrepareForRendering(true);
        }
示例#3
0
        // We have to clear editor data and load runtime data
        // Also it handles duplicating game objects
        protected override void Awake()
        {
            base.Awake();
            meshFilter.sharedMesh = null;
            if (_vectorGraphics != null)
            {
                _vectorGraphics.AddReference(this);
            }

            Clear();
            PrepareForRendering(true);
            #if UNITY_EDITOR
            UpdateTimeStamp();
            #endif
        }