how to convert string to int unity c# code example
Example: how to turn string to int in unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Example : MonoBehaviour
{
int i;+
string text = "100";
void Start()
{
i = System.Convert.ToInt32(text); // Turns i to 100
}
}