ShowWithParams() 공개 메소드

public ShowWithParams ( Vector2 position, string paths, int pathIndex ) : void
position UnityEngine.Vector2
paths string
pathIndex int
리턴 void
        public static void ApplyCustom()
        {
            RainbowFoldersPopup window   = RainbowFoldersPopup.GetDraggableWindow();
            Vector2             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);
        }
        private static void ShowPopupWindow(Rect rect, string path)
        {
            RainbowFoldersPopup window   = RainbowFoldersPopup.GetDraggableWindow();
            Vector2             position = GUIUtility.GUIToScreenPoint(rect.position + new Vector2(0, rect.height + 2));

            if (_multiSelection)
            {
                // ReSharper disable once RedundantTypeArgumentsOfMethod
                var paths = Selection.assetGUIDs
                            .Select <string, string>(AssetDatabase.GUIDToAssetPath)
                            .Where(AssetDatabase.IsValidFolder).ToList();

                int index = paths.IndexOf(path);
                window.ShowWithParams(position, paths, index);
            }
            else
            {
                window.ShowWithParams(position, new List <string> {
                    path
                }, 0);
            }
        }