在我的网站上,我的网址将包含以下参数:
example.com/magicpage/?p=10&d=somestuff
Run Code Online (Sandbox Code Playgroud)
在处理请求后,我有办法删除这些参数吗?因此,当用户单击链接时,会传递参数,但可见URL只是example.com/magicpage
更多细节:
example.com/magicpage
Run Code Online (Sandbox Code Playgroud) 我正在尝试为谷歌纸板制作 VR 游戏,并且我正在尝试在 2 秒后设置相机的 FOV,但是我收到错误:
“NullReferenceException:未将对象引用设置为对象 CameraFOV.Start 的实例”
using UnityEngine;
using System.Collections;
public class CameraFOV : MonoBehaviour
{
// Use this for initialization
void Start()
{
System.Threading.Thread.Sleep(2000);
Camera.current.fieldOfView = 60;
}
// Update is called once per frame
void Update()
{
}
}
Run Code Online (Sandbox Code Playgroud)