How to create prompt box using dialog manager?

0 votes
asked Mar 17, 2016 in Help by anonymous

I would like to use the dialog manager to create a input field that would capture the input entered by the user?

I am not sure how to do this. Please help me!!

 

Thanks in advanced ^_^

1 Answer

0 votes
answered Mar 17, 2016 by admin (31,720 points)
selected Mar 21, 2016 by admin
 
Best answer
Hello :)

This is a great feature request, I've added that to the list of things to do, it "should" be in the next update ;)

In the meantime, if you want to do it yourself, you'll need to take DialogAlert that already exists in MaterialUI, duplicated it, renamed it to DialogPrompt or something and create your own script.
- First go to MaterialUI/Prefabs/Resources/Dialogs/ and duplicate the DialogAlert prefab
- Put it in the scene, and add an input field to it, save it to a new prefab (DialogPrompt)
- Duplicate the MaterialUI/Scripts/Components/Dialogs/DialogAlert.cs script, and rename it to DialogPrompt
- Add all the code needed to capture the input from the input field and callbacks etc...

But as I said, it should be in the next version ;)
commented Mar 18, 2016 by anonymous
Thank you very much for your quick and helpful response.

Cheers! ^_^
commented Mar 30, 2016 by admin (31,720 points)
I've just added that to the project :)
It will be available in the next update!
Welcome to MaterialUI support! Ask us anything :)
...