public static void Open(GradientData data, MaterialProperty prop) { data.gradient = Helper.GetGradient(prop.textureValue); texture_settings_data = null; GradientEditor window = (GradientEditor)EditorWindow.GetWindow(typeof(GradientEditor)); window.privious_preview_texture = prop.textureValue; window.prop = prop; window.data = data; window.SetGradient(data.gradient); window.gradient_has_been_edited = false; window.Show(); }
public static void Open(GradientData data, MaterialProperty prop, TextureData predefinedTextureSettings, bool force_texture_options = false, bool show_texture_options = true) { texture_settings_data = LoadTextureSettings(prop, predefinedTextureSettings, force_texture_options); data.gradient = TextureHelper.GetGradient(prop.textureValue); GradientEditor window = (GradientEditor)EditorWindow.GetWindow(typeof(GradientEditor)); window.privious_preview_texture = prop.textureValue; window.prop = prop; window.data = data; window.show_texture_options = show_texture_options; window.minSize = new Vector2(350, 350); window.Show(); }
public static void Open(GradientData data, MaterialProperty prop, bool show_texture_options = true) { data.gradient = TextureHelper.GetGradient(prop.textureValue); texture_settings_data = null; GradientEditor window = (GradientEditor)EditorWindow.GetWindow(typeof(GradientEditor)); window.privious_preview_texture = prop.textureValue; window.prop = prop; window.data = data; window.SetGradient(data.gradient); window.gradient_has_been_edited = false; window.show_texture_options = show_texture_options; window.minSize = new Vector2(350, 350); window.Show(); }