public static void ApplyCustom() { var window = RainbowFoldersPopup.GetDraggableWindow(); var position = RainbowFoldersEditorUtility.GetProjectWindow().position.position + new Vector2(10f, 30f); var paths = Selection.assetGUIDs.Select <string, string>(AssetDatabase.GUIDToAssetPath).Where(AssetDatabase.IsValidFolder).ToList(); window.ShowWithParams(position, paths.ToList(), 0); }
//--------------------------------------------------------------------- // Helpers //--------------------------------------------------------------------- private static Vector2 CalcWindowPosition() { return(RainbowFoldersEditorUtility.GetProjectWindow().position.position + new Vector2(10f, 30f)); }