Unity VRTK资产错误

问题描述 投票:1回答:1

我刚刚下载了统一的VRTK v3.20资产,但在导入后我遇到了一些错误。我似乎无法在网上找到解决方案。

Unity版本:2018.1.6f1个人64位。

错误:

1.VRTK / Scripts / Interactions / Highlighters / VRTK_MaterialColorSwapHighlighte.cs(146,66):错误CS1540:无法通过typeUnityEngine.Texture'的限定符访问受保护成员UnityEngine.Texture.Texture()'。限定符必须是“VRTK.Highlighters.VRTK_MaterialColorSwapHighlighter”类型或从中派生出来的

2.VRTK / Scripts / Interactions / Highlighters / VRTK_MaterialColorSwapHighlighte.cs(146,66):错误CS0122:由于其保护级别,`UnityEngine.Texture.Texture()'无法访问

这是一行错误:

renderer.material.SetTexture("_MainTex", new Texture());
unity3d error-handling textures vrtk
1个回答
0
投票

资产商店的VRTK 3.2.0不支持Unity 2018.1。您需要从Github页面获取VRTK 3.3.0,使用master分支:

https://github.com/thestonefox/VRTK

© www.soinside.com 2019 - 2024. All rights reserved.