Click here to Skip to main content
15,909,440 members

Comments by chino96 (Top 3 by date)

chino96 26-Sep-17 22:57pm View    
oh, ok Thanks You! But Can I ask where I should use the inputfiel = txtInput.Text;? in void start or in void update?
chino96 26-Sep-17 22:33pm View    
Sorry, I still dont know what to use from that page, I already have a script thats drags the winner to the text file(so already have the infromation) or maybe I miss something?
chino96 26-Sep-17 21:14pm View    
Deleted
I try this:
public class DataInserter : MonoBehaviour
{

string CreateGanadoresURL = "http://localhost/trivia/ganadores.php";

public Text factura;

public string inputFactura;
public string inputRuc;
public string inputNombre;
// Use this for initialization
void Start ()
{
inputFactura = factura.Text;//this is the 19
}

And the error is: Assets/Scripts/DataInserter.cs(19,32): error CS1061: Type `UnityEngine.UI.Text' does not contain a definition for `Text' and no extension method `Text' of type `UnityEngine.UI.Text' could be found. Are you missing an assembly reference?

sorry Im a noob!