Panel dialog in Unity_Android

0

I am trying to add a selection dialog panel in an Android application using Unity. I currently use EditorUtility.DisplayDialogComplex but when I generate an APK, I miss an error saying that this class can not be used on Android, can someone tell me how I can put a selection dialog in Unity_Android?

a greeting

    
asked by Urko Sanchez Ortiz 05.04.2018 в 10:57
source

1 answer

1

I still can not comment so I'll create an answer.

You tried to use

EditorUtility.DisplayDialog(titulo,mensaje,ok,cancelar);

In each of the parameters goes a string. For example:

EditorUtility.DisplayDialog("Deseas continuar?", "El item se desintegrará", "eliminar", "cancelar");
//En sí el primer parámetro es la pregunta, el segundo es un mensaje que se
//muestra debajo de la pregunta con menor tamaño y los dos strings siguientes 
//sirven para las opciones de aceptar y cancelar respectivamente.

The other option I can think of is to use the GUI and manually manipulate the events using a script, but I hope that the first option works for you.

    
answered by 17.04.2018 / 18:31
source