hi ...
i see code from my friends and he use IVirtualButtonEventHandler in script qualcom. and the contains code
/*============================================================================== Copyright (c) 2010-2013 QUALCOMM Austria Research Center GmbH. All Rights Reserved. Confidential and Proprietary - QUALCOMM Austria Research Center GmbH. ==============================================================================*/ /// <summary> /// An interface for handling virtual button state changes. /// </summary> public interface IVirtualButtonEventHandler { /// <summary> /// Called when the virtual button has just been pressed. /// </summary> void OnButtonPressed(VirtualButtonBehaviour vb); /// <summary> /// Called when the virtual button has just been released. /// </summary> void OnButtonReleased(VirtualButtonBehaviour vb); }
i need the function onButtonReleased. when im copy that's script have error like this ..
Assets/Script/VirtualButtonEventHandler.cs(3,14): error CS0535: `VirtualButtonEventHandler' does not implement interface member `IVirtualButtonEventHandler.OnButtonPressed(VirtualButtonAbstractBehaviour)'
the name script from my friends VirtualButtonEventHandler .
anyone help ?
Just replace the VirtualButtonBehaviour
with
VirtualButtonAbstractBehaviour
in the OnButtonPressed() and OnButtonReleased()
This was a small API change introduced in Vuforia 2.8.7 with respect to previous versions.