Unity中利用代码将物体摆放成一个圆圈的形状

在场景中新建一个C#的CircleShape脚本,并挂载到游戏场景中任何一个游戏物体上,然后打开脚本,并复制以下的代码!!!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CircleShape : MonoBehaviour {

    public GameObject prefab;//预制体
    

猜你喜欢

转载自blog.csdn.net/jianjianshini/article/details/105833615