Skip to content

Commit f4c6f36

Browse files
committed
[unity] Updated the FixedTimestepUpdates sample scene to use the new sample component SkeletonAnimationFixedTimestepThreaded.
1 parent f81c9a5 commit f4c6f36

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@
572572
- `SkeletonGraphic` now provides a new method `MatchReferenceRectWithBounds` to adjust the reference rectangle bounds to the mesh bounds for use with automatic layout scale modes. The `Match RectTransform with Mesh` `Match` button is now available outside of `Edit Layout Bounds` mode as well and performs this adjustment for quick one-click setup.
573573
- `SkeletonGraphic`: You can now offset the pivot with automatic offset compensation via a newly added blue circle handle. This lets you move the pivot to the skeleton part that you want fixed when auto layout mode scales and moves your skeleton around to fit the RectTransform bounds. It also helps to visualize the current pivot position if you set the pivot numerically via the RectTransform Inspector.
574574
- `SkeletonAnimation` received a `DeltaTimeOverride` callback. This allows advancing by custom delta time for e.g. stepped animation updates in a threaded context. The callback may change `UpdateMode` to disable or limit skeleton updates for certain frames. It is called on the main thread once before animation update.
575+
- Added sample component `SkeletonAnimationFixedTimestepThreaded` as a replacement component for `SkeletonAnimationFixedTimestep` which was limited to single-threaded use only. This component is using the new `DeltaTimeOverride` event and is thus compatible with both single-threaded and multi-threaded animation.
575576

576577
- **Deprecated**
577578

spine-unity/Assets/Spine/Samples~/Spine Examples/Other Examples/FixedTimestepUpdates.unity

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ MonoBehaviour:
136136
m_GameObject: {fileID: 466319114}
137137
m_Enabled: 1
138138
m_EditorHideFlags: 0
139-
m_Script: {fileID: 11500000, guid: e1670ee04b19c794db301d734c71bdd6, type: 3}
139+
m_Script: {fileID: 11500000, guid: e6434816ced1f0c4191ea05e7377446c, type: 3}
140140
m_Name:
141141
m_EditorClassIdentifier:
142142
skeletonAnimation: {fileID: 466319116}
@@ -150,7 +150,7 @@ MonoBehaviour:
150150
m_PrefabParentObject: {fileID: 0}
151151
m_PrefabInternal: {fileID: 0}
152152
m_GameObject: {fileID: 466319114}
153-
m_Enabled: 0
153+
m_Enabled: 1
154154
m_EditorHideFlags: 0
155155
m_Script: {fileID: 11500000, guid: d247ba06193faa74d9335f5481b2b56c, type: 3}
156156
m_Name:
@@ -473,7 +473,7 @@ MonoBehaviour:
473473
m_PrefabParentObject: {fileID: 0}
474474
m_PrefabInternal: {fileID: 0}
475475
m_GameObject: {fileID: 1140995461}
476-
m_Enabled: 0
476+
m_Enabled: 1
477477
m_EditorHideFlags: 0
478478
m_Script: {fileID: 11500000, guid: d247ba06193faa74d9335f5481b2b56c, type: 3}
479479
m_Name:
@@ -565,7 +565,7 @@ MonoBehaviour:
565565
m_GameObject: {fileID: 1140995461}
566566
m_Enabled: 1
567567
m_EditorHideFlags: 0
568-
m_Script: {fileID: 11500000, guid: e1670ee04b19c794db301d734c71bdd6, type: 3}
568+
m_Script: {fileID: 11500000, guid: e6434816ced1f0c4191ea05e7377446c, type: 3}
569569
m_Name:
570570
m_EditorClassIdentifier:
571571
skeletonAnimation: {fileID: 1140995462}
@@ -726,7 +726,7 @@ MonoBehaviour:
726726
m_GameObject: {fileID: 1915670692}
727727
m_Enabled: 0
728728
m_EditorHideFlags: 0
729-
m_Script: {fileID: 11500000, guid: e1670ee04b19c794db301d734c71bdd6, type: 3}
729+
m_Script: {fileID: 11500000, guid: e6434816ced1f0c4191ea05e7377446c, type: 3}
730730
m_Name:
731731
m_EditorClassIdentifier:
732732
skeletonAnimation: {fileID: 1915670694}

0 commit comments

Comments
 (0)