【问题标题】:Type or namespace name 'IUnzipper' could not be found找不到类型或命名空间名称“IUzipper”
【发布时间】:2017-11-29 09:46:27
【问题描述】:

我正在尝试使用 Vuforia 在 Unity 中运行虚拟按钮的简单实现。 我当前的版本是:Unity 5.6.1

我收到 找不到类型或命名空间“IUzipper”(您是否使用了缺少的指令或程序集引用?)

我的 C# 脚本:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;

public class vbScript : MonoBehaviour, IVirtualButtonEventHandler {

GameObject zombie;

// Use this for initialization
void Start () {
    zombie = GameObject.Find ("zombie");
    GameObject virtualButtonObject = GameObject.Find ("actionButton");
    virtualButtonObject.GetComponent<VirtualButtonBehaviour> ().RegisterEventHandler (this);
}

public void OnButtonPressed(VirtualButtonAbstractBehaviour vb) { 

    Debug.Log("button Pressed");
    zombie.GetComponent<Animation> ().Play ();

}

public void OnButtonReleased(VirtualButtonAbstractBehaviour vb) { 
    zombie.GetComponent<Animation> ().Stop ();
}
}

错误跟踪: \VirtualButton3\Assets\Vuforia\Editor\Scripts\Unzipper\SharpZipLibUnzipper.cs(38,38):错误 CS0246:找不到类型或命名空间名称“IUzipper”(您是否缺少 using 指令或程序集参考?)(CS0246)(Assembly-CSharp-Editor)

【问题讨论】:

标签: c# unity3d augmented-reality vuforia


【解决方案1】:

Google 是一个很好的资源。 似乎模板并不总是随文件夹一起提供。

这里是它的链接link

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-07-12
    • 2011-05-13
    • 2013-03-25
    • 2012-06-19
    • 2012-09-27
    • 2011-05-06
    • 2013-01-07
    相关资源
    最近更新 更多