Migration Guide
Migrating from 0.11.0 -> 1.0.0
Migration Process:
Back-up your unity project before migrating!
If you've made any custom code changes, scripts, materials, or assets inside the Aquafloat package folder, remove those from the Aquafloat folder so they will not be deleted.
Delete the "UdonVR - Aquafloat" folder from your packages.
Unity won't let you delete the package from the editor. You can right click on the package folder and click "Show in Explorer" to open it in your file explorer.
Import the new Aquafloat package.
Close and Reopen Unity.
Breaking Changes:
All class names have been prefixed with "Aquafloat". If you have any custom scripts you will need to update the Class Names to include Aquafloat (example
FlowForce
->AquafloatFlowForce
)
Other Important Changes:
FloatFlow.cs
is fully deprecated in favor of a newFlowForce
system. UseStaticFlow
instead. It should just work as a drop in replacement. The script will be removed in the next version.All flow forces now work as Dynamic flow forces. Meaning the forces applied to the floaters will update instantly upon being changed.
Migrating from 0.10.0 -> 0.11.0
FloatFlow.cs
is deprecated in favor of a newFlowForce
system. UseStaticFlow
instead. It should just work as a drop in replacement at the time being.Changed the API for Flow Forces in the
Floater.cs
script.AddWaterFlow() -> AddStaticFlowForce() and AddDynamicFlowForce()
RemoveWaterFlow() -> RemoveStaticFlowForce() and RemoveDynamicFlowForce()
Migrating from 0.8.0 -> 0.9.0 and higher
Adjusted the floaterPoint calculations to account for number of floater points. This only affects objects with more than one floaterPoint.
If you want to retain the same physics behaviour, multiply the "depthBeforeSubmerged" and "displacementAmount" by the number of floater points for all floaterPoints on your object For example: I have a box with 4 floaterPoints on it, I'll want to multiply both depthBeforeSubmerged and displacementAmount by 4 for all 4 floaterPoints
Last updated