Log in or register to post comments

Adding a custom virtual button through prefab crashes the app

October 9, 2013 - 5:24am #1

I am adding a virtual button through prefab object on my custom marker. But when I export theiOS project, it crashes and this is the screen I see:

http://grab.by/qZIa

Due to this I am  unable to add a custom virtual button to my project.

I have also tried adding a virtual button thru XML but it is not added because inside the start function, the number of virtual buttons is zero (only in case of XML). Here is the code used to calculate the number of virtual buttons

Debug.Log("VirtualButtonEventHandler : start()");
        VirtualButtonBehaviour[] vbs = GetComponentsInChildren<VirtualButtonBehaviour>();
Debug.Log("VirtualButtonEventHandler : num of virtual button = " + vbs.Length);
 
Can someone help ?

Adding a custom virtual button through prefab crashes the app

October 10, 2013 - 3:05am #2

Presumably the Virtual Buttons sample runs ok ?

If so how is your application different?

Also, what happens if you try to debug it in Play mode?

 

Log in or register to post comments