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; } }
private void Awake() { if (this.scrollRect != null) { this.target = this.scrollRect.gameObject.AddComponent <ScrollbarVisibilityHelper>(); this.target.onlySendMessage = true; this.target.target = this; } }
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; } }