EditorGUI.SelectableLabel

I am have a static string number in script1

As I am using EditorGUI I need to put script to in the Editor folder.

But now it isnt an active script and doesnt work in builded game
Here is script2

function Update () {

EditorGUI.SelectableLabel(Rect(10,25,600, 50),Script1.number);

}

How do I have Script1.number in Selectable Label?

1 Answer

1

I could be wrong, but I’m fairly sure that:

You can only use GUI or EditorGUI calls in OnGUI() or related functions.

You cannot use EditorGUI in a built game.

Yea you are right I had figued that out. Anyways do you have any clue how to make something similar to Selectable Label inn GUI Textfield alwats pops up the iPhone keyboard :/