video thumbnail 15:25
Unity Gradient Editor (2/3)

2017-11-16

[public] 10.3K views, 278 likes, 2.00 dislikes audio only

In this series we'll be creating a custom gradient editor.

Source:

https://github.com/SebLague/Gradient-Editor

Support the creation of more gamedev tutorials:

https://www.patreon.com/SebastianLague

https://www.paypal.me/SebastianLague


make a public method for setting the gradient
/youtube/video/Mq56rMUMq1s?t=24.278999
use position dot width
/youtube/video/Mq56rMUMq1s?t=109.149
start by creating a public struct called a color key
/youtube/video/Mq56rMUMq1s?t=171.89999
add the system dot serializable
/youtube/video/Mq56rMUMq1s?t=197.94
set it straight away to a new list of color hues
/youtube/video/Mq56rMUMq1s?t=306.39999
start by constructing a new color
/youtube/video/Mq56rMUMq1s?t=367.12
loop through all of the keys currently in the list
/youtube/video/Mq56rMUMq1s?t=394.95999
work on the evaluate method
/youtube/video/Mq56rMUMq1s?t=445.98001
create a color key variable
/youtube/video/Mq56rMUMq1s?t=470.82001
pass in the x coordinate of the mouse
/youtube/video/Mq56rMUMq1s?t=700.56
loop through all of the keys in the gradient
/youtube/video/Mq56rMUMq1s?t=745.04999
set this equal to a new rectangle
/youtube/video/Mq56rMUMq1s?t=771.53998
subtract from this half of the key width
/youtube/video/Mq56rMUMq1s?t=805.91998
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support these videos on Patreon patreon.com
https://www.patreon.com/SebastianLague
A* Pathfinding Tutorial (Unity) by Sebastian Lague
/youtube/video/-L-WgKMFuhE
Shape Editor Tool by Sebastian Lague
/youtube/video/bPO7_JNWNmI