캐릭터 오브젝트 주변에 원 퍼져 나가게 하기(스캔)
스캔할때처럼 캐릭터 중앙에서부터 원을 그려서 캐릭터 반경 5m 주변까지 원이 점차 커져나가는 것을 구현 using System.Collections;using System.Collections.Generic;using UnityEngine;public class Scan : MonoBehaviour{ public LineRenderer lineRenderer; public float radius = 0f; // Initial radius public int segments = 360; // Number of segments to draw the circle public float expandRate = 1f; // Expansion rate per second public fl..
유니티/게임만들기
2024. 5. 27. 01:24