Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PrefabsUtility does not contain ...
#1
Hello!

I just bought Curvy Splines 8 and imported it into my project. So far so good!

I then added the Converter for Unity Spline package, but it did not compile as there is an error:

Library\PackageCache\com.unity.splines@2.6.1\Editor\Utilities\SplineCacheUtility.cs(24,27): error CS0117: 'PrefabUtility' does not contain a definition for 'prefabInstanceReverting'

Which is that statement in the SplineCacheUtility class :

Code:
#if UNITY_2022_3_OR_NEWER
            PrefabUtility.prefabInstanceReverting += _ => ClearAllCache();
#else

Any idea what is the problem?

Curvy Splines 8 version → 8.11.0
Converter For Unity Splines version → 1.3.2
Unity Project version → 2022.3.18f1
Splines version → 2.6.1

Thanks!
Reply
#2
Hi Shills

This error is a compilation error within Unity's Splines package, probably due to an incompatibility between that package version and Unity version. I recommend you to use Unity 2022.3.34f1, which is the minimal supported version for Converter For Unity Splines.

Did that fix the issue?

Have a nice day.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#3
(02-10-2025, 11:08 PM)_Aka_ Wrote: Hi Shills

This error is a compilation error within Unity's Splines package, probably due to an incompatibility between that package version and Unity version. I recommend you to use Unity 2022.3.34f1, which is the minimal supported version for Converter For Unity Splines.

Did that fix the issue?

Have a nice day.

Hello! Thanks for the quick reply!

Sadly, since we are at the early stage of our project, it'd cost less effort to simply redo the Unity spline in Curvy spline than to update the Unity project for everyone. 

I'll try to fork the project and try your solution when I have the time. I'll keep you updated!
Reply
#4
Hi,

Since upgrading is not an option, then the solution is to use the splines package version that is compatible with your unity version. I did a test and version 2.5.2 is the version you should use. Using it will fix the compilation errors. but keep in mind that I have not thoroughly tested my asset with that version of the splines package.

I hope this helped. If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Forum Jump: