【问题标题】:Why could not be found 'IVirtualButtonEventHandle' on unity/vuforia?为什么在 unity/vuforia 上找不到“IVirtualButtonEventHandle”?
【发布时间】:2015-05-29 02:01:07
【问题描述】:

我在 Unity 上使用 vuforia SDK。添加 VirtualButton 时,我看到了这个问题。

Assets/VirtualButtonEventHandle.cs(4,56): error CS0246: The type or namespace name 'IVirtualButtonEventHandle' could not be found. Are you missing a using directive or an assembly reference?

VirtualButtonEventHandle.cs:

------------------
using UnityEngine;
using System.Collections;

public class VirtualButtonEventHandle : MonoBehaviour **IVirtualButtonEventHandle**{
---------------

【问题讨论】:

标签: unity3d unityscript vuforia


【解决方案1】:

使用 Vuforia; 解决了我的问题!

【讨论】:

    【解决方案2】:

    那是因为你缺少这个目录:

    using System.Collections.Generic;
    

    我花了一周的时间试图找到相同的东西。希望这可以帮助。 :)

    【讨论】:

    • 感谢您的回答。我不需要 .generic 目录,因为当我添加公共类 VirtualButtonEventHandle : MonoBehaviour, Vuforia.IVirtualButtonEventHandler {} 时它可以工作。 – Ercan Semerci 50 分钟前
    • 嗯,通用通常有效,所以如果你可以将其标记为答案,它可能会帮助很多其他人。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多