📜  unity 删除字符串中的特定文本 - C# 代码示例

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

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

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