Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
Fix runtime exception for Unity
Browse files Browse the repository at this point in the history
  • Loading branch information
lithiumtoast committed Jul 23, 2023
1 parent 60cf43d commit bdd4bd7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cs/production/Flecs.Core/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,13 @@ public bool Progress(float deltaTime)

public string GetFlecsTypeName(Type type)
{
#if !UNITY_5_3_OR_NEWER
#pragma warning disable CA1307
return type.FullName!.Replace("+", ".");
#pragma warning restore CA1307
#else
return type.FullName!.Replace("+", ".", StringComparison.InvariantCulture);
#endif
}

public string GetFlecsTypeName<T>()
Expand Down

0 comments on commit bdd4bd7

Please sign in to comment.