unity search for specific text in a string
public string testString = "I hope this help you";
public string otherCase = "I hope";
public void SearchForText()
{
if(testString.Contains("you"))
{
Debug.Log("The variable testString contains the word you")
}
if(testString.Contains(otherCase))
{
Debug.Log("The variable testString contains the value of the variable otherCase")
}
}
Also in C#:
- c# datatable copy selected rows to another table
- unity making homing missile
- .net core authorizationhandlercontext
- how to copy one array value to another without reference c#
- how to generate random unique id in c#
- c# repeat string x times
- mvc input type file
- c# get directory part of path
- c# send email
- play animation through script unity
- using in c#
- c# read a webpage data
- div element position in screen
- remove from list based on condition c#
- how to stream video from vlc in c#
- project tab unity
- panel drag all form c#
- change textbox location C#
- c# input
- c# checksum
- unity rotate object c#
- unity get velocity of gameobject
- when do i need to end a sentence with ; in c#
- run async methods within a sync process