Example #1
0
        /// <summary>
        /// Creates clone from the project currently open in Unity Editor.
        /// </summary>
        /// <returns></returns>
        public static Project CreateCloneFromCurrent()
        {
            if (IsClone())
            {
                Debug.LogError("This project is already a clone. Cannot clone it.");
                return(null);
            }

            string currentProjectPath = ProjectCloner.GetCurrentProjectPath();

            return(ProjectCloner.CreateCloneFromPath(currentProjectPath));
        }