Tanoda
|
Samples colors from a screen capture. Warning! In the editor if you're not in Free aspect mode then the captured area includes the grey areas to the left and right of the game view window. In a build this will not be an issue. More...
Public Member Functions | |
void | OnPointerDown (PointerEventData eventData) |
void | OnPointerUp (PointerEventData eventData) |
void | OnDrag (PointerEventData eventData) |
Public Attributes | |
ColorChangedEvent | oncolorSelected = new ColorChangedEvent() |
Protected Member Functions | |
virtual void | OnEnable () |
virtual void | OnDisable () |
virtual void | Update () |
virtual void | HandleSamplerColoring () |
virtual void | SelectColor () |
Protected Attributes | |
Button | sampler |
Outline | samplerOutline |
Texture2D | screenCapture |
Color | color |
Samples colors from a screen capture. Warning! In the editor if you're not in Free aspect mode then the captured area includes the grey areas to the left and right of the game view window. In a build this will not be an issue.
This does not work well with a world space UI as positioning is working with screen space.
Definition at line 17 of file ColorSampler.cs.
|
protectedvirtual |
Definition at line 60 of file ColorSampler.cs.
|
protectedvirtual |
Definition at line 42 of file ColorSampler.cs.
void UnityEngine.UI.Extensions.ColorPicker.ColorSampler.OnDrag | ( | PointerEventData | eventData | ) |
Definition at line 90 of file ColorSampler.cs.
|
protectedvirtual |
Definition at line 34 of file ColorSampler.cs.
void UnityEngine.UI.Extensions.ColorPicker.ColorSampler.OnPointerDown | ( | PointerEventData | eventData | ) |
Definition at line 80 of file ColorSampler.cs.
void UnityEngine.UI.Extensions.ColorPicker.ColorSampler.OnPointerUp | ( | PointerEventData | eventData | ) |
Definition at line 85 of file ColorSampler.cs.
|
protectedvirtual |
Definition at line 72 of file ColorSampler.cs.
|
protectedvirtual |
Definition at line 49 of file ColorSampler.cs.
|
protected |
Definition at line 32 of file ColorSampler.cs.
ColorChangedEvent UnityEngine.UI.Extensions.ColorPicker.ColorSampler.oncolorSelected = new ColorChangedEvent() |
Definition at line 30 of file ColorSampler.cs.
|
protected |
Definition at line 22 of file ColorSampler.cs.
|
protected |
Definition at line 26 of file ColorSampler.cs.
|
protected |
Definition at line 28 of file ColorSampler.cs.