Horje
unity string array Code Example
unity string array
// String array in Unity C#
string[] names = new string[] {"red", "green", "blue"};

// To use lists, make sure to have this at the beginning of your program
using System.Collections.Generic;

// To declare a new list
public List<string> listOfColours = new List<string>();

// To add elements to your list
void Start()
{
	listOfColours.Add("Red");
    listOfColours.Add("Green");
    listOfColours.Add("Blue");
}




Csharp

Related
c# negative index Code Example c# negative index Code Example
game object find Code Example game object find Code Example
how to open any file on button click in winforms Code Example how to open any file on button click in winforms Code Example
audiomixer get float Code Example audiomixer get float Code Example
making beep voice in c# Code Example making beep voice in c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10