You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use bmlTUX with Unity 2019.4.35f. I have enabled .NET 4.x in the project settings. Upon installing the package, I get a syntax error in TuxLog.cs(19,40):
Library\PackageCache\com.biomotionlab.tux@5.0.0\Scripts\Utilities\TuxLog.cs(19,40): error CS1525: Invalid expression term '='
The line is bmlTuxEditorSettings ??= BmlTuxEditorSettings.GetOrCreateSettings();. I suspect it's because the null-coalescing assignment operator was introduced in C# 8.0 if I'm not mistaken.
With 2022.3.59 I don't get the error. Maybe just update the requirements accordingly?
Your analysis is correct. It’s the c# version. It’s been a long time, but I’m pretty sure you can manually bump up the .net version in a project using Unity 2019. So instead of 4x you’d actually specify the higher version that’s higher than the automatically picked one.
Just to note if you really need to use an old version, you can load the package as an embedded package and edit it yourself. To be compatible. Or crate a fork. Hope that helps.
Activity
AdamBebko commentedon Mar 11, 2025
Your analysis is correct. It’s the c# version. It’s been a long time, but I’m pretty sure you can manually bump up the .net version in a project using Unity 2019. So instead of 4x you’d actually specify the higher version that’s higher than the automatically picked one.
AdamBebko commentedon Mar 11, 2025
Just to note if you really need to use an old version, you can load the package as an embedded package and edit it yourself. To be compatible. Or crate a fork. Hope that helps.
soelderer commentedon Mar 12, 2025
Thanks for the quick support!