ColorPicker
ColorPicker
Paintcraft does NOT have color picker inside, so first what you need to do is to write color picker by yourself or find it on asset store or github.
In this Receipt we will take free picker by @zloedi from github cui_color_picker, So you can download this package and import in to your project.
Custom Script which will listen color picker change
You need to implement simple script which will listen color picker changes.
Create File SetColorFromColorPicker.cs
and add it to the same game object as CUI Color picker. After that set up line config reference
that's it., When you change color on picker it will be assigned to the LineConfig.
Additional Info
CUI Color Picker is not properly tested, so please make sure that you checked and you don't have memory leacks. If you do please change _onValueChange
variable to public and subscribe/unsubscribe to this even in OnEnable/OnDisable methods at your SetColorFromColorPicker
file like
Last updated