I need to create a ScriptableObject through script, So I used AssetDatabase.CreateAsset but it creates inside project folders only.
So is there a way to create the ScriptableObject through script outside project folders?
And if there are no other ways, how can I convert the choosen folder path to a suitable path for AssetDatabase.CreateAsset?
like E:/Projects/Time System/Assets/ChoosenFolder to Assets/ChoosenFolder.
I'm choosing the folder by string path = EditorUtility.OpenFolderPanel("Choose Folder", "", "");
AssetDatabase.CreateAsset, but it's good idea @Zibelas \$\endgroup\$AssetDatabase.CreateAssetand pass the path ofEditorUtility.OpenFolderPanelto theFileUtil.MoveFileOrDirectorywith the fixed temp path and the users chosen one. \$\endgroup\$EditorUtility.OpenFolderPanel, but if the user chose a folder inside the project byEditorUtility.OpenFolderPanelI can't use the path of it withAssetDatabase.CreateAsset, for example, if the user choseCreated Itemsfolder inside folder assets it will appear like thisE:/Projects/Time System/Assets/Created ItemsandAssetDatabase.CreateAssetwill refuse to create to it \$\endgroup\$E:/Projects/Time System/Assets/Created Itemsshould be converted to thisAssets/Created Itemsthat's what I mentioned as being more important to me \$\endgroup\$