Asset Window
Last updated
Last updated
You can access this Window in Tools->AllIn1->SpringsWindow, in the top bar of the Unity editor: Tools -> AllIn1 -> SpringsWindow
Once opened you’ll see something like this. You have 3 tabs. The first one is the Springs Debugger that is explained in the next section.
In the Spring Settings tab you’ll find the Fixed Update rate. When enabled, the springs, similarly to how Unity physics work, will update a fixed amount of times per second. Meaning that some frames, if the framerate isn’t stable, it may update more than once and that some others it may not even update at all.
This feature makes sure that the springs are always stable, even in very low frame rate situations. And it also ensures that the springs animations always look and feel exactly the same in all frame rates.
Fixed Time Step can be changed according to your project needs, you can even dynamically change it if you really want to. But for most projects the default value will work great.
The feature can be disabled if you wish to, but if the game dips below 10-15 frames you may get some strange behaviors.
Another important configurable variable included in the asset window is the Force Threshold. This value determines when springs switch from the fast semi-implicit method (default) to the more stable analytical solution. Springs with force values below this threshold use the efficient method, while those exceeding it automatically use the mathematically exact solution for stability. Most projects work well with the default value (7500), but you can lower it if you experience stability issues or raise it for better performance with high-force springs. Setting it to -1 will always use the less performant analytical solution (physical-based simulation), which offers maximum stability at the cost of performance.
At the bottom of this tab we can also find a button to solve the following issue: Fix Spring Size Warning. In the Other tab (only in Unity version 2021.2 onward) you’ll see 2 buttons to automate the addition and removal of the asset custom icon to the Spring Components found in the project.
You’ll notice that all SpringComponents have a custom icon:
This purple icon will also show in the Scene view when Gizmos are enabled. If you want to remove all purple icons or you want to add them to the new SpringComponents you created you can use these shortcut buttons.