📜  unity 替换字符串中的文本 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:40.531000             🧑  作者: Mango

代码示例1
public string strOne = "Hello World";
public string strTwo = "World";

public void ReplaceStrTwoFromStrOne()
{
    strOne = strOne.Replace(strTwo, "everyone"); //strOne = "Hello everyone" now
}