public UITexturePickerWindow OpenTextureEditWindow(string t, string current) { if (texturePickWindow != null) { Utils.Log("[WaterfallUI] Changing Texture Picker target", LogType.UI); texturePickWindow.ChangeTexture(t, current); } else { Utils.Log("[WaterfallUI] Opening Texture Picker", LogType.UI); texturePickWindow = new UITexturePickerWindow(t, current, true); } return(texturePickWindow); }