Log in or register to post comments

Virtual Buttons with Images/Text

September 1, 2013 - 8:27am #1

Is it possible to have a virtual button display images/text when pressed in an AR scene? 

Virtual Buttons with Images/Text

June 14, 2017 - 6:23am #11

Di you manage to sort this. Would be good to have a solution

Virtual Buttons with Images/Text

September 3, 2013 - 4:32pm #10

Are you sure that it was the Unity samples archive and not one of the native samples archives?

What was the file extension of the samples once you unpacked the zip archive?

Virtual Buttons with Images/Text

September 3, 2013 - 1:19pm #9

When I open the zipped download it is a load of files that are unrecognised. Its the only time I have not been able to import any package/asset. 

I was also unable to find a virtual button example in the "learn section".

Thanks for all your assistance. 

Virtual Buttons with Images/Text

September 2, 2013 - 11:52am #8

try double clicking on the unitypackage.

It will be a good idea to review some of the basic Unity tutorials, or you'll drive yourself crazy trying to accomplish anything - http://unity3d.com/learn/tutorials/modules

Virtual Buttons with Images/Text

September 2, 2013 - 11:10am #7

When I go to import the package it is not available for me to select to import. I have downloaded and unzipped the file

Virtual Buttons with Images/Text

September 2, 2013 - 8:06am #6

Did you import the unitypackage, and then click on the scene in the project to load it?

You should be able to see the code by double clicking the file, or it's field in the Inspector.

Virtual Buttons with Images/Text

September 2, 2013 - 4:26am #5

Had a look at the source code and still a bit confused, I download sample code but I can't seem to view it?

Alternatively an on screen button would suffice if this would be easier for me to implement.

Virtual Buttons with Images/Text

September 1, 2013 - 10:54am #4

Is the text static or will it be written dynamically?

For images, define them as the texture of a material and add that material to a plane mesh in the Scene View. You can then render the plane in response to button events. Use the code for rendering in the DefaultTrackableEventHandler within the OnButtonPressed/ Released methods. Also I'd recommend using the VBSoccarBallEventHandler as an example, it's a simpler script.

Virtual Buttons with Images/Text

September 1, 2013 - 10:41am #3

Thank you. I have been looking through the code for the button, and have watched the video on virtual buttons but my coding is not th best so I was hoping to add the text/image in the scene view....is that possible?

Virtual Buttons with Images/Text

September 1, 2013 - 9:12am #2

Certainly. Check out the Virtual Buttons sample to see how a Virtual Button Event Handler is implemented on the ImageTarget, by implementing the IVirtualButtonEventHandler interface. You can catch the button press and release to trigger the presentation of text a/o images.

Log in or register to post comments