public GameObject obj;
// Start is called before the first frame update
void Start()
{
for(int i=0;i<100;i++)
{
for(int j=0;j<100;j++)
{
float h = Mathf.PerlinNoise(i/30f,j/30f)*30;
Instantiate(obj,new Vector3(i,h,j),Quaternion.identity);
}
}
}
Unity柏林噪音
最新推荐文章于 2024-06-24 20:16:58 发布