Assets/VRTK/Scripts/Interactions/Highlighters/VRTK_MaterialColorSwapHighlighter.cs(146,66): error CS

关于unity2018左右版本,SteamVR和VRTK导入报错。
问题:Assets/VRTK/Scripts/Interactions/Highlighters/VRTK_MaterialColorSwapHighlighter.cs(146,66): error CS0122: `UnityEngine.Texture.Texture()’ is inaccessible due to its protection level

解决办法:new Texture()改为new Texture2D(),由于Texture2D()需要两个返回值,所以你要输入两个任意值。

最后,感谢台湾老师傅老师的问答!写出来希望帮到更多的人!

你可能感兴趣的:(游戏开发,虚拟现实,bug)