diff --git a/Packages/com.skymavis.axiemixer.unity/Runtime/Components/Builder/Axie2dBuilder.cs b/Packages/com.skymavis.axiemixer.unity/Runtime/Components/Builder/Axie2dBuilder.cs index 6d0a83af..825a47f9 100644 --- a/Packages/com.skymavis.axiemixer.unity/Runtime/Components/Builder/Axie2dBuilder.cs +++ b/Packages/com.skymavis.axiemixer.unity/Runtime/Components/Builder/Axie2dBuilder.cs @@ -195,7 +195,13 @@ SkeletonDataAsset CreateMixedSkeletonDataAsset(MixedSkeletonData mixed, float sc Scale = scale }; var loadedSkeletonData = skeletonMixed.ReadSkeletonData(mixed, true); - skeletonDataAsset.InitializeWithData(loadedSkeletonData); + + //phuongnk - cheat to call internal function + skeletonDataAsset.skeletonJSON = new TextAsset(); + Type thisType = skeletonDataAsset.GetType(); + var theMethod = thisType.GetMethod("InitializeWithData", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); + theMethod.Invoke(skeletonDataAsset, new object[] { loadedSkeletonData }); + // skeletonDataAsset.InitializeWithData(loadedSkeletonData); return skeletonDataAsset; } diff --git a/Packages/com.skymavis.axiemixer.unity/package.json b/Packages/com.skymavis.axiemixer.unity/package.json index 98b209de..db132834 100644 --- a/Packages/com.skymavis.axiemixer.unity/package.json +++ b/Packages/com.skymavis.axiemixer.unity/package.json @@ -1,6 +1,6 @@ { "name": "com.skymavis.axiemixer.unity", - "version": "0.6.3", + "version": "0.6.4", "displayName": "Axie Mixer", "description": "Core library for mixing Axie's parts together.", "unity": "2020.3" diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index f1ee15a7..c88b30a9 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -134,7 +134,7 @@ PlayerSettings: 16:10: 1 16:9: 1 Others: 1 - bundleVersion: 0.6.3 + bundleVersion: 0.6.4 preloadedAssets: [] metroInputSource: 0 wsaTransparentSwapchain: 0