Search Issue Tracker

Fixed

Fixed in 6000.0.60f1, 6000.2.9f1, 6000.3.0b6, 6000.4.0a2

Votes

1

Found in

2022.3.66f1

6000.0.58f1

6000.2.4f1

6000.3.0b2

6000.4.0a2

Issue ID

UUM-117367

Regression

No

NotImplementedException is thrown when using System.String.Replace(String, String, Boolean, CultureInfo)

-

Reproduction steps:
1. Open the attached “IN-115424.zip” project
2. Open the “SampleScene”
3. Enter Play mode
4. Observe the Console

Expected Result: No errors in the Console
Actual result: “NotImplementedException: The method or operation is not implemented.” error in the Console

Reproducible with: 2021.3.56f1, 2022.3.66f1, 6000.0.58f1, 6000.2.4f1, 6000.3.0b2

Reproducible on: Windows 11, macOS 15.6 (M1 Max)
Not reproducible on: no other environments tested

  1. Resolution Note:

    The Culture invariant version of String.Replace was never implemented by the upstream mono implementation at https://github.com/mono/mono and therefore Unity has inherited it. Mono is currently in stability mode and we are limiting changes to fixes for crashes or hangs primarily.

  2. Resolution Note (fix version 6000.4.0a2):

    Fix the System.String.Replace throwing NotImplementedException.

  3. Resolution Note (fix version 6000.3.0b6):

    Fix the System.String.Replace throwing NotImplementedException.

  4. Resolution Note (fix version 6000.2.9f1):

    Fix the System.String.Replace throwing NotImplementedException.

  5. Resolution Note (fix version 6000.0.60f1):

    Fix the System.String.Replace throwing NotImplementedException.

Comments (1)

  1. LukeDawn

    Sep 14, 2025 09:55

    I'm getting this error using:-
    text.Replace(word, replacement, StringComparison.InvariantCultureIgnoreCase);

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.