Notice
Recent Posts
Recent Comments
Link
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Archives
Today
Total
관리 메뉴

moonee-e3 님의 블로그

2024-05-20 플레이어의 카메라 시점 변경 본문

개발 일지 [3D | Dream Forest]

2024-05-20 플레이어의 카메라 시점 변경

moonee-e3 2024. 6. 21. 00:24

 

 

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

public class Follow : MonoBehaviour
{
    public Transform target;
    public Vector3 offset;


    // Update is called once per frame
    void Update()
    {
        transform.position = target.position + offset;
    }

    //카메라 안 오브제 확인 코드 https://blog.naver.com/10ro/220895900463
}