- Home /
Array Slit String and Send NGUI text
using UnityEngine;
using System.Collections.Generic;
using System;
public class ArrayListSort : MonoBehaviour
{
public string textUnsort;
public string [] SortText;
public int i = 0;
private int numberString = 0;
void Update ()
{
SortText = textUnsort.Split(new Char [] {','});
if (i >= 0)
{
numberString = i+1;
GetComponent<UILabel>().text = numberString.ToString() + ". "+ SortText[i].ToString();
i = i -1;
}
}
}
we get:
How the entire table, not just the first line?
Instead ";" how to get spaces?
leaderboardnguitest.png
(213.0 kB)
Comment
Your answer
Follow this Question
Related Questions
C# String Array Has Missing or Incorrect Keycode Strings 2 Answers
how to randomly pick a string from an array 3 Answers
C# Incrementing a String Array 1 Answer
Referencing private string for array name 2 Answers
Extending the Array class? 1 Answer