C# Class UnityEditor.ColorPicker

Inheritance: EditorWindow
Show file Open project: randomize/VimConfig Class Usage Examples

Private Properties

Property Type Description
BrightnessField void
CreateGradientTexture UnityEngine.Texture2D
DoColorSliders void
DoColorSpaceGUI void
DoColorSwatchAndEyedropper void
DoHexField void
DoPresetsGUI void
DoTonemapping Color
DoTonemapping void
DrawColorSlider void
DrawColorSpaceBox void
DrawLabelOutsideRect void
EditableAxisLabel float
FillArea void
GetColorScale float
GetScrollWheelDeltaInRect float
GetTonemappingExposureAdjusment float
GetXAxisLabel string
GetYAxisLabel string
GetZAxisLabel string
HSVSliders void
HSVToRGB void
HSVToRGBArray void
HandleCopyPasteEvents void
InitIfNeeded void
LinearToGammaArray void
OnDisable void
OnEnable void
OnFloatFieldChanged void
OnGUI void
OnSelectionChange void
PhotographicTonemapping float
PollOSColorPicker void
PresetClickedCallback void
RGBSliders void
RGBToHSV void
RemoveFocusFromActiveTextField void
ScaleColors void
SendEvent void
SetColor void
SetHDRScaleFactor void
SetHeight void
SetMaxDisplayBrightness void
SetNormalizedColor void
Slider2D Vector2
Slider3D void
SpecialHDRBrightnessHandling void
TexturedSlider float
TonemappingControls void
Update1DSlider UnityEngine.Texture2D
swap void

Public Methods

Method Description
ColorPicker ( ) : System
GetGradientTextureWithAlpha0To1 ( ) : Texture2D
GetGradientTextureWithAlpha1To0 ( ) : Texture2D
MakeTexture ( int width, int height ) : Texture2D
OnDestroy ( ) : void
Show ( GUIView viewToUpdate, Color col ) : void
Show ( GUIView viewToUpdate, Color col, bool showAlpha, bool hdr, ColorPickerHDRConfig hdrConfig ) : void

Private Methods

Method Description
BrightnessField ( ) : void
CreateGradientTexture ( string name, int width, int height, Color leftColor, Color rightColor ) : Texture2D
DoColorSliders ( ) : void
DoColorSpaceGUI ( ) : void
DoColorSwatchAndEyedropper ( ) : void
DoHexField ( float availableWidth ) : void
DoPresetsGUI ( ) : void
DoTonemapping ( Color col, float exposureAdjustment ) : Color
DoTonemapping ( Color colors, float exposureAdjustment, TonemappingType tonemappingType ) : void
DrawColorSlider ( Rect colorSliderRect, Vector2 constantValues ) : void
DrawColorSpaceBox ( Rect colorBoxRect, float constantValue ) : void
DrawLabelOutsideRect ( Rect position, string label, LabelLocation labelLocation ) : void
EditableAxisLabel ( Rect rect, Rect dragRect, float value, float minValue, float maxValue, GUIStyle style ) : float
FillArea ( int xSize, int ySize, Color retval, Color topLeftColor, Color rightGradient, Color downGradient ) : void
GetColorScale ( ) : float
GetScrollWheelDeltaInRect ( Rect rect ) : float
GetTonemappingExposureAdjusment ( ) : float
GetXAxisLabel ( ColorBoxMode colorBoxMode ) : string
GetYAxisLabel ( ColorBoxMode colorBoxMode ) : string
GetZAxisLabel ( ColorBoxMode colorBoxMode ) : string
HSVSliders ( ) : void
HSVToRGB ( ) : void
HSVToRGBArray ( Color colors, float scale ) : void
HandleCopyPasteEvents ( ) : void
InitIfNeeded ( ) : void
LinearToGammaArray ( Color colors ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnFloatFieldChanged ( float value ) : void
OnGUI ( ) : void
OnSelectionChange ( ) : void
PhotographicTonemapping ( float value, float exposureAdjustment ) : float
PollOSColorPicker ( ) : void
PresetClickedCallback ( int clickCount, object presetObject ) : void
RGBSliders ( ) : void
RGBToHSV ( ) : void
RemoveFocusFromActiveTextField ( ) : void
ScaleColors ( Color colors, float scale ) : void
SendEvent ( bool exitGUI ) : void
SetColor ( Color c ) : void
SetHDRScaleFactor ( float value ) : void
SetHeight ( float newHeight ) : void
SetMaxDisplayBrightness ( float brightness ) : void
SetNormalizedColor ( Color c ) : void
Slider2D ( Rect rect, Vector2 value, Vector2 maxvalue, Vector2 minvalue, GUIStyle backStyle, GUIStyle thumbStyle ) : Vector2
Slider3D ( Rect boxPos, Rect sliderPos, float &x, float &y, float &z, GUIStyle box, GUIStyle thumb2D, GUIStyle thumbHoriz ) : void
SpecialHDRBrightnessHandling ( Rect boxPos, Rect sliderPos ) : void
TexturedSlider ( Texture2D background, string text, float val, float min, float max, float displayScale, string formatString, Action onFloatFieldChanged ) : float
TonemappingControls ( ) : void
Update1DSlider ( Texture2D tex, int xSize, float const1, float const2, float &oldConst1, float &oldConst2, int idx, bool hsvSpace, float scale, float exposureValue, bool forceUpdate, TonemappingType tonemappingType ) : Texture2D
swap ( float &f1, float &f2 ) : void

Method Details

ColorPicker() public method

public ColorPicker ( ) : System
return System

GetGradientTextureWithAlpha0To1() public static method

public static GetGradientTextureWithAlpha0To1 ( ) : Texture2D
return UnityEngine.Texture2D

GetGradientTextureWithAlpha1To0() public static method

public static GetGradientTextureWithAlpha1To0 ( ) : Texture2D
return UnityEngine.Texture2D

MakeTexture() public static method

public static MakeTexture ( int width, int height ) : Texture2D
width int
height int
return UnityEngine.Texture2D

OnDestroy() public method

public OnDestroy ( ) : void
return void

Show() public static method

public static Show ( GUIView viewToUpdate, Color col ) : void
viewToUpdate GUIView
col Color
return void

Show() public static method

public static Show ( GUIView viewToUpdate, Color col, bool showAlpha, bool hdr, ColorPickerHDRConfig hdrConfig ) : void
viewToUpdate GUIView
col Color
showAlpha bool
hdr bool
hdrConfig ColorPickerHDRConfig
return void