            {
                rootName = objName;
            }
            else if (slashIndex == 0 || slashIndex == objName.Length - 1)
            {
                throw new ArgumentException("Invalid GameObject path");
            }
            else
            {
                rootName = objName.Substring(0, slashIndex);
                childName = objName.Substring(slashIndex + 1);
            }

            // Get root object