• RuntimesUnity
  • Inspector.InitOrRebuild Takes Too Long When Selecting Spine Timeline Tracks

Hello,

We recently upgraded Spine-Runtime and Timeline Extensions from version 3.8 to 4.1 in our project. After the upgrade, we've noticed that every time we select a clip in the Timeline track, a popup for Inspector.InitOrRebuild appears, and it takes over a minute to load the information. This is causing significant delays in our work, and we would like to know how to resolve this issue.

Using unity version is 2021.3.36f1.

Thank you.

Related Discussions
...

The issue you're experiencing with Inspector.InitOrRebuild taking too long when selecting Spine Timeline tracks after upgrading from version 3.8 to 4.1 is likely related to the changes in the update method order and the pre-processing steps introduced in the newer versions.

Here are a few steps you can take to resolve or mitigate the issue:

  1. Disable Costly Pre-processing Step: As mentioned in the forum, a new Spine Preferences parameter has been added to disable the time-consuming pre-processing step. You can disable the Optimize Preview Meshes setting in Spine Preferences to reduce the build time.

       Added Spine Preferences setting `Prefabs - Optimize Preview Meshes`. When enabled, Spine prefab preview meshes will be removed in a pre-build step to reduce build size. This increases build time as all prefabs in the project will be processed. Defaults to false to not slow down builds substantially every time.
  2. Update to Latest Version: Ensure you are using the latest version of the Spine-Unity runtime and Timeline extensions. There have been several bug fixes and improvements in the 4.1 and 4.2-beta branches that might resolve your issue.

  3. Check for Specific Fixes: There have been specific fixes related to performance and initialization delays in the newer versions. For example, the fix for the Playable.SetSpeed issue and other timeline-related bugs.

  4. Provide Detailed Information: If the issue persists, providing detailed information about your project setup, including the number of active Spine objects and SkeletonDataObjects, can help diagnose the problem more accurately.

By following these steps, you should be able to reduce the delays caused by Inspector.InitOrRebuild and improve your workflow efficiency.