public override VisualComponent Clone() { var scroll = new ScrollBoxComponent(); scroll.Material = Material; scroll.shaderUniform = shaderUniform; scroll.colorMask = colorMask; scroll.Mask = Mask; scroll.Texture = Texture; scroll.color = color; scroll.ScrollDirection = ScrollDirection; return(scroll); }
public void SetScrollBox(ScrollBoxComponent component) { ScrollBox = component; ScrollBox.AddScrollBar(this); }