Hey guy,
I have a little question i don’t find in the web. Can we replace the first string of an string? Here’s a small exemple: “true && true && true && true”, replace the first “true && true” by “double_true” then return “double_true && true && true”.
You’re looking for “string.replace”. Here’s an example:
string inString = "true && true && true && true";
string outString = inString.Replace("true && true", "double_true");
Debug.Log(outString);