아카이브

[LearnUGUI] Input System 본문

유니티 심화

[LearnUGUI] Input System

timbercat 2023. 9. 5. 18:11

Input Field 생성하기

Input Field 스크립트

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

public class Test02InputField : MonoBehaviour
{
    private TMP_InputField input;
    // Start is called before the first frame update
    void Start()
    {
        this.input = this.GetComponentInChildren<TMP_InputField>();
        this.input.onValueChanged.AddListener((str) => {
            Debug.Log(str);
        });
    }

실행화면

'유니티 심화' 카테고리의 다른 글

[LearnUGUI] 애니메이션 연출  (0) 2023.09.12
[주말] LearnUGUI 데이터 연동 연습  (0) 2023.09.11
LearnUGUI  (0) 2023.09.04
[주말] Input System 연습  (0) 2023.09.04
[SaveAndLoad] 데이터 연동  (0) 2023.09.01