Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.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
控制台中无法识别Unity c#错误四元数_C#_Unity3d - Fatal编程技术网

控制台中无法识别Unity c#错误四元数

控制台中无法识别Unity c#错误四元数,c#,unity3d,C#,Unity3d,我得到一个错误,说“四元数”是无法识别的 using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public GameObject prefab; // Instantiate the Prefab somewhere between -10.0 and 10.0 on the x-z plane void Start() {

我得到一个错误,说“四元数”是无法识别的

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    public GameObject prefab;

    // Instantiate the Prefab somewhere between -10.0 and 10.0 on the x-z plane
    void Start()
    {
        Vector3 position = new Vector3(Random.Range(-10.0f, 10.0f), 0, Random.Range(-10.0f, 10.0f));
        Instantiate(prefab, position, quaternion.identity);
    }
}
“四元数”中的q需要大写才能清除错误。

四元数中的q需要大写才能清除错误