问题遇到的现象和发生背景
unity使用Random随机函数时
问题相关代码,请勿粘贴截图
using UnityEngine;
using Random = System.Random;
public class TestPoint : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
float fl = Random.value;
}
}
运行结果及报错内容
Cannot resolve symbol 'value'
unity引用是正常的,可以看到Vector3等unity系统变量都正常。
我想要达到的结果
Random.value 随机数为什么我无法使用,不明白请解惑,万法感谢!