Skip to content

Syntax error with Unity 2019.4.35f #80

@soelderer

Description

@soelderer

Hello,

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?

Best regards and thank you for your work!
Paul

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions