Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

CSharp

string STRING = "Test 1
Test 2
Test 3
Test 4
Test 5";
int webLines = STRING.Split('
').Length;
int lineNumber = UnityEngine.Random.Range(0, webLines - 1);
string lineText = STRING.Split('
').ElementAtOrDefault(lineNumber);
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to split concat string c# 
Csharp :: List string to file C# 
Csharp :: unity movement 
Csharp :: untiy instanciate prefab 
Csharp :: destroy game object 
Csharp :: how unsort the data table options 
Csharp :: c# integer to bit string 
Csharp :: c# list to array 
Csharp :: c# join string array 
Csharp :: c# return switch 
Csharp :: c# making a folder 
Csharp :: visual studio c# color dialog 
Csharp :: how to add a queue unity 
Csharp :: c# read file line by line 
Csharp :: simple player controller unity 
Csharp :: create instance of class given class name string c# 
Csharp :: get client ip address c# 
Csharp :: get diff btw datetimes two C# 
Csharp :: hash table in c# 
Csharp :: how to get integer value from textbox in c# 
Csharp :: press key run code unity c# 
Csharp :: unity change cursor texture 
Csharp :: c# add string to array 
Csharp :: c# for loop next iteration 
Csharp :: how to add a gameobject 
Csharp :: LINQ query to select top 5 
Csharp :: unity c# audio source 
Csharp :: c# list 
Csharp :: c# string interpolation 
Csharp :: sleep in c# 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =