void Awake() {
     // Add component on parent ScrollRect so we know when its dimensions change too
     if(scrollRect != null) {
         target = scrollRect.gameObject.AddComponent<ScrollbarVisibilityHelper>();
         target.onlySendMessage = true;
         target.target = this;
     }
 }
 private void Awake()
 {
     if (this.scrollRect != null)
     {
         this.target = this.scrollRect.gameObject.AddComponent<ScrollbarVisibilityHelper>();
         this.target.onlySendMessage = true;
         this.target.target = this;
     }
 }
Exemplo n.º 3
0
 private void Awake()
 {
     if (this.scrollRect != null)
     {
         this.target = this.scrollRect.gameObject.AddComponent <ScrollbarVisibilityHelper>();
         this.target.onlySendMessage = true;
         this.target.target          = this;
     }
 }
Exemplo n.º 4
0
 void Awake()
 {
     // Add component on parent ScrollRect so we know when its dimensions change too
     if (scrollRect != null)
     {
         target = scrollRect.gameObject.AddComponent <ScrollbarVisibilityHelper>();
         target.onlySendMessage = true;
         target.target          = this;
     }
 }