12345678910111213141516171819202122232425 |
- 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<LineRenderer>();
- 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()
- {
-
- }
- }
|