C# Cubemap在Gameview中不旋转,但在Unity中在设备中旋转
我创造了统一的立方体地图 通过在设备上旋转360,我可以看到完整的360。 然而,当我试图用鼠标在Gameview中旋转它时,什么也没发生 在我的游戏视图中,使用下面的代码旋转立方体地图。但是我想使用鼠标指针旋转立方体地图。我应该编写哪些代码而不是下面的代码来使用鼠标指针旋转立方体地图C# Cubemap在Gameview中不旋转,但在Unity中在设备中旋转,c#,unity3d,monodevelop,C#,Unity3d,Monodevelop,我创造了统一的立方体地图 通过在设备上旋转360,我可以看到完整的360。 然而,当我试图用鼠标在Gameview中旋转它时,什么也没发生 在我的游戏视图中,使用下面的代码旋转立方体地图。但是我想使用鼠标指针旋转立方体地图。我应该编写哪些代码而不是下面的代码来使用鼠标指针旋转立方体地图 Vector3 lerpedRotation = new Vector3 (); Vector3 userInput = new Vector3 (); Vector3 regularRotati
Vector3 lerpedRotation = new Vector3 ();
Vector3 userInput = new Vector3 ();
Vector3 regularRotation = new Vector3 ();
regularRotation.y += Input.GetAxis ("Mouse X") * -0.05f;
regularRotation.x += Input.GetAxis ("Mouse Y") * 0.05f;
if(textLeftTitle!=null && Input.GetAxis ("Mouse X")<280*wdpi){ lerpedRotation.y = 0;
lerpedRotation.x = 0;
}
Vector3 lerpedRotation=newvector3();
vector3userinput=newvector3();
Vector3 regularRotation=新Vector3();
regularRotation.y+=Input.GetAxis(“鼠标X”)*-0.05f;
regularRotation.x+=Input.GetAxis(“鼠标Y”)*0.05f;
如果(textLeftTitle!=null&&Input.GetAxis(“鼠标X”)您可以发布用于旋转立方体贴图的代码吗?立方体贴图使用skybox功能旋转。您是否绝对确定您的代码与鼠标旋转兼容?如果您不发布代码的相关部分,很可能您在这里没有得到任何帮助。