Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity how to get the first word from string

string test = "first second";

print(test.Split(new char[] { ' ' })[0]);
print(test.Split(new char[] { ' ' })[1]);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# hex to console color 
Csharp :: unity change particle system sorting layer via script 
Csharp :: c# how to terminate console application 
Csharp :: c# convert string to int 
Csharp :: c# combobox selectedvalue 
Csharp :: unity clamp rotation 
Csharp :: fill all array c# with same value 
Csharp :: milliseconds to seconds c# 
Csharp :: new color unity 
Csharp :: generate random name c# 
Csharp :: displayname c# 
Csharp :: regular expression for email in c# 
Csharp :: dotnet ef database update connection string 
Csharp :: open folder dialog c# 
Csharp :: C# .net core convert string to enum 
Csharp :: c# create a zip files 
Csharp :: c# get value from textbox 
Csharp :: covert char[] to string C# 
Csharp :: visual studio fix formatting 
Csharp :: c# declare an int list 
Csharp :: header export excel data only php 
Csharp :: unity how to get the side ways velocity of a object 
Csharp :: top down movement unity 
Csharp :: how to set rigidbody velocity in unity 
Csharp :: c# byte array to file 
Csharp :: get enum value from display name c# 
Csharp :: total months between two dates c# 
Csharp :: asp.net file detect mime type 
Csharp :: get last character of string c# 
Csharp :: unity random string 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =