Skip to content

Commit

Permalink
Fix call internal spine function
Browse files Browse the repository at this point in the history
  • Loading branch information
phuong-axie committed Nov 23, 2024
1 parent f46f5e7 commit 21318e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.skymavis.axiemixer.unity/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21318e4

Please sign in to comment.