using System.Collections; using System.Collections.Generic; using UnityEngine; public class EffectLinePos : MonoBehaviour { public Transform effectLinePos; private LineRenderer line; // Start is called before the first frame update void Start() { line = GetComponent(); line.positionCount = effectLinePos.childCount; for (int i = 0; i < effectLinePos.childCount; i++) { line.SetPosition(i, effectLinePos.GetChild(i).position); } } // Update is called once per frame void Update() { } }