Beispiel #1
0
 void OnEnable()
 {
     _splitter  = new VerticalSplitterControl(300.0f, this);
     _normal    = new TexturePickerControl("Normal Image");
     _hover     = new TexturePickerControl("Hover Image");
     _focused   = new TexturePickerControl("Focused Image");
     _active    = new TexturePickerControl("Active Image");
     _onNormal  = new TexturePickerControl("On Normal Image");
     _onHover   = new TexturePickerControl("On Hover Image");
     _onFocused = new TexturePickerControl("On Focused Image");
     _onActive  = new TexturePickerControl("On Active Image");
 }
Beispiel #2
0
 public static void Show(TexturePickerControl control)
 {
     Control   = control;
     _textures = Resources.FindObjectsOfTypeAll <Texture2D>();
     GetWindow <TexturePickerWindow>("Texture Picker").ShowAuxWindow();
 }