Log in or register to post comments

does not implement interface member 'IVirtualButtonEventHandler.OnButtonPressed(VirtualButtonAbstractBehaviour)'

June 20, 2019 - 4:56pm #1

Im using virtual button, but this error shows.

Assets\Vuforia\Scripts\click.cs(6,37): error CS0535: 'click' does not implement interface member 'IVirtualButtonEventHandler.OnButtonPressed(VirtualButtonAbstractBehaviour)'

 

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using Vuforia;

public class click : MonoBehaviour ,IVirtualButtonEventHandler{



   public GameObject model, vbutton;

void Start(){

vbutton.GetComponent<VirtualButtonBehaviour().RegisterEventHandler(this);

model = GameObject.Find("model");

model.SetActive(false);

}

public void OnButtonPressed(VirtualButtonBehaviour vb)

{

model.SetActive(true);

}

public void OnButtonReleased(VirtualButtonBehaviour vb)

{

model.SetActive(false);

}



void Update () {

}}

 

Log in or register to post comments