Skip to content

Quick change to make this work in Unity #17

@jrgibson

Description

@jrgibson

Hello,

Thanks for the package. It looks fantastic!

I haven't been working with this for more than 30 minutes, but I did import it into Unity, and the compiler immediately complained about the include line: using System.Threading.Tasks;

The full error was:
Assets/FuzzyString/ApproximatelyEquals.cs(5,24): error CS0234: The type or namespace name 'Tasks' does not exist in the namespace 'System.Threading'. Are you missing an assembly reference?

This is possibly because Unity is very strict about allowing any multithreading (though they're doing some great things with it via the new jobs system) and possibly because Unity uses an old version of C#.

Regardless, simply removing that include across all of the .cs files eliminated the error, and it seems from the lack of subsequent errors that maybe that include wasn't needed in the first place.

Just thought you might want to know in case other Unity users are eager to try FuzzyString.

Thanks,
-- Jeremy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions