its kinda easy you just need to make a new float variable (ex: i), than make a for loop by using the variable and the "width" variable than add the variable to the x in the "Gui.drawRect", also add it to the width ("Gui.drawRect"), and lastly add the variable to the rainbow and multiply it by 50 or 100Hello, I was wondering if anyone could provide some insight on how to make a rect with the colors moving.
Ex: the session stats in this video
Why not just use a gradient shader? Its not that hard to make?its kinda easy you just need to make a new float variable (ex: i), than make a for loop by using the variable and the "width" variable than add the variable to the x in the "Gui.drawRect", also add it to the width ("Gui.drawRect"), and lastly add the variable to the rainbow and multiply it by 50 or 100
Thought about that but wouldnt it be bad for performance because youre drawing so many rectaits kinda easy you just need to make a new float variable (ex: i), than make a for loop by using the variable and the "width" variable than add the variable to the x in the "Gui.drawRect", also add it to the width ("Gui.drawRect"), and lastly add the variable to the rainbow and multiply it by 50 or 100
it's really notThought about that but wouldnt it be bad for performance because youre drawing so many recta