using System;
using System.Collections.Generic;
using UnityEngine;
public class BCLine : MonoBehaviour
{
public Gradient gradient;
public static bool Cliked = false;
public static BCLine SavingBC;
public List<GameObject> BCChild=new List<GameObject>();
private LineRenderer lineRenderer;
private void Awake()
{
BCChild.Clear();
}
public void MakeBC(Vector3 Start,Vector3 End)
{
GameObject go = Instantiate(new GameObject(), transform.parent);
BCChild.Add(go);
go.AddComponent<Line>();
go.GetComponent<Line>().startPoint = Start;
go.GetComponent<Line>().endPoint = End;
go.GetComponent<Line>().gradient = gradient;
}
public bool EachBC(Transform Target)
{
foreach (var VARIABLE in BCChild)
{
if (VARIABLE.GetComponent<Lin
Unity点击两个物体生成贝塞尔曲线工具
最新推荐文章于 2025-06-16 10:40:52 发布