Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Cubemap在Gameview中不旋转,但在Unity中在设备中旋转_C#_Unity3d_Monodevelop - Fatal编程技术网

C# Cubemap在Gameview中不旋转,但在Unity中在设备中旋转

C# Cubemap在Gameview中不旋转,但在Unity中在设备中旋转,c#,unity3d,monodevelop,C#,Unity3d,Monodevelop,我创造了统一的立方体地图 通过在设备上旋转360,我可以看到完整的360。 然而,当我试图用鼠标在Gameview中旋转它时,什么也没发生 在我的游戏视图中,使用下面的代码旋转立方体地图。但是我想使用鼠标指针旋转立方体地图。我应该编写哪些代码而不是下面的代码来使用鼠标指针旋转立方体地图 Vector3 lerpedRotation = new Vector3 (); Vector3 userInput = new Vector3 (); Vector3 regularRotati

我创造了统一的立方体地图

通过在设备上旋转360,我可以看到完整的360。 然而,当我试图用鼠标在Gameview中旋转它时,什么也没发生

在我的游戏视图中,使用下面的代码旋转立方体地图。但是我想使用鼠标指针旋转立方体地图。我应该编写哪些代码而不是下面的代码来使用鼠标指针旋转立方体地图

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功能旋转。您是否绝对确定您的代码与鼠标旋转兼容?如果您不发布代码的相关部分,很可能您在这里没有得到任何帮助。