build unity 丢失,为什么命名空间“ IUnityRenderPipeline” Vuforia脚本突然丢失?

I've been working in Unity the last month or so. I've gotten a few iterations of a basic AR application worked up but I've updated Unity and now my code is throwing all sorts of errors.

Last week my app was working fine when building to my Pixel phone. Now that I've updated to Unity 2018.3.9, Vuforia 8.1 is now missing the name space mentioned in the title. Does anyone have any information on this?

The app will play correctly if I restart Unity up until I try to build the application to the phone. Once I build and it fails I can't replay the application due to compiler errors.

I've typed in different namespaces in the Vuforia Script and have checked my script. Mine is the same script I've used in previous versions with zero issues. I have Vuforia in the namespace but the issue appears to be coming form the Vuforia inherent script instead.

Here's the section of the Vuforia Code that appears to have the most bugs:

\\\\

namespace Vuforia.UnityCompiled

{

public class RuntimeOpenSourceInitializer

{

static IUnityCompiledFacade sFacade;

[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]

static void OnRuntimeMethodLoad()

{

InitializeFacade();

}

static void InitializeFacade()

{

if (sFacade != null) return;

sFacade = new OpenSourceUnityCompiledFacade();

UnityCompiledFacade.Instance = sFacade;

}

class OpenSourceUnityCompiledFacade : IUnityCompiledFacade

{

readonly IUnityRenderPipeline mUnityRenderPipeline = new UnityRenderPipeline();

public IUnityRenderPipeline UnityRenderPipeline

{

get { return mUnityRenderPipeline; }

}

}

class UnityRenderPipeline : IUnityRenderPipeline

{

public event Action BeginFrameRendering;

public event Action BeginCameraRendering;

public UnityRenderPipeline()

\\\\\

I'm not versed enough in C# to know the fine tunings of QC'ing the code other than the immediate lack of ";" in a lot of these lines.

What the app should be doing is building correctly to my phone. Once there it's an application that reads a sketch I drew, and shows a model or several renderings of the space based on the image target and virtual buttons placed in Unity.

解决方案

Hello

Not sure how you created your app, but these errors look similar to ones you'd get if there was a mismatch between the Engine SDK version and the Vuforia samples. As the SDK evolves and APIs are created/changes, so do the samples to be compatible with them. Here's how you can check the versions of both (assuming you used Vuforia samples resources):

- SDK version: Unity Editor->Window->Vuforia Configuration.

- Samples version: Unity Editor->Project window: Assets/Vuforia/version.

also, you can delete the old version of Vuforia and re-import from the Package Manager in Unity.

Thanks,

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值