Log in or register to post comments

Dynamically create button at runtime in Android

January 17, 2018 - 8:47am #1



I'm working on a project using Vuforia in Android. At the moment, whenever I scan a new 3D object using the scanner app, the only way I've found to add any virtual content to it (see screenshot attached) is to do so through Unity, which I then move over to Android to test.

While this works well, it poses problems for the next step in the project, which is to dynamically change what the text of the button says. I plan to get information from a database and based on the result change whats written on the button.

Therefore my question is, is it possible to change the buttons text at runtime or is it possible for me to add/delete buttons at runtime within Android, therefore without any input from Unity.

At the moment it seems like Unity is required for the creation of the virtual content, but if you want to change the virtual content while the app is running it is not possible to do so.


Any advice would be much appreciated.


Image icon Screenshot_20171106-113844.png5.98 MB
Log in or register to post comments