목록유니티 심화 (12)
아카이브

가이드 이미지를 가져온 다음 메인오브젝트 ribbon 만들기 백그라운드와 텍스트 생성 리본 애니메이션 생성 리본 애니메이션 루프타임 해제 컨트롤러 수정 play 트리거로 만들고 설정

엑셀 파일을 만들어줌 csv 파일을 제이슨 코드로 변환 https://shancarter.github.io/mr-data-converter/ Mr. Data Converter shancarter.github.io 제이슨 코드를 붙여넣기 한 후 https://jsonviewer.stack.hu/ Online JSON Viewer jsonviewer.stack.hu Format 누르기 맨 위 블록은 삭제한다 메모장에 복사 붙여넣기 한 후 json 파일로 저장 유니티 Resources 폴더에 json 파일을 넣고 DataManager 스크립트 만들어줌 유니티에 newtonsoft Json가 임포트 되어 있어야 함 ChestData.cs using System.Collections; using System.Co..

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(); this.input.onValueChanged.AddListener((str) => { Debug.Log(str); }); } 실행화면

메인 오브젝트 버튼의 이미지 소스와 폰트 넣어줌 스크립트 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Test01UIMain : MonoBehaviour { [SerializeField] private Button btnBlue; public void Init() { this.btnBlue.onClick.AddListener(() => { Debug.Log("blue 버튼 클릭됨"); }); } } using System.Collections; using System.Collections.Generic; using UnityEngine; publi..