private static RampCollectionEditor Init()
        {
            RampCollectionEditor window = (RampCollectionEditor)GetWindow(typeof(RampCollectionEditor));

            window.titleContent = new GUIContent("Ramp Collection Editor");
            window.minSize      = new Vector2(600, 600);
            return(window);
        }
 public static bool OpenWindowWithAsset(int instanceID, int line)
 {
     if (EditorUtility.InstanceIDToObject(instanceID) is RampCollectionData collection)
     {
         RampCollectionEditor editor = Init();
         editor.rampCollectionRaw = collection;
         return(true);
     }
     return(false);
 }