Tanoda
ColorPickerTester.cs
Go to the documentation of this file.
1
using
UnityEngine
;
2
3
public
class
ColorPickerTester
: MonoBehaviour
4
{
5
6
public
new
Renderer
renderer
;
7
public
ColorPicker
picker
;
8
9
public
Color
Color
=
Color
.red;
10
11
// Use this for initialization
12
void
Start ()
13
{
14
picker
.
onValueChanged
.AddListener(color =>
15
{
16
renderer
.material.color = color;
17
Color
= color;
18
});
19
20
renderer
.material.color =
picker
.
CurrentColor
;
21
22
picker
.
CurrentColor
=
Color
;
23
}
24
25
// Update is called once per frame
26
void
Update () {
27
28
}
29
}
Color
UnityEngine.Color Color
Definition:
TestScript.cs:32
ColorPicker
Definition:
ColorPicker.cs:6
ColorPicker.onValueChanged
ColorChangedEvent onValueChanged
Definition:
ColorPicker.cs:19
ColorPicker.CurrentColor
Color CurrentColor
Definition:
ColorPicker.cs:23
ColorPickerTester
Definition:
ColorPickerTester.cs:4
ColorPickerTester.Color
Color Color
Definition:
ColorPickerTester.cs:9
ColorPickerTester.picker
ColorPicker picker
Definition:
ColorPickerTester.cs:7
ColorPickerTester.renderer
new Renderer renderer
Definition:
ColorPickerTester.cs:6
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
unity-ui-extensions
Runtime
Scripts
Controls
ColorPicker
ColorPickerTester.cs
Generated by
1.9.3