public static string GetPackageName(UClass @class) { var package = @class.GetPackageName(); var data = package.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries); string[] data2 = new string[0]; if (data.Length > 1) { data2 = new string[data.Length - 1]; for (int i = 0; i < data2.Length; i++) { data2[i] = CleanupName(data[i]); } } if (data.Length == 0) { package = UnrealGame.Instance.Name; } else { package = UnrealGame.Instance.Name + "." + string.Join(".", data2); } return(package); }