유니티 심화 86

[복습] LearnUGUI - Test04[Stage]

이번거는 많이 어렵다고 느낀다.. 학교에서 내 생각대로 했었던 코드들은 뭔가 회생 불가능할 것 처럼 보여서 강사님의 코드를 보고 써보고 이해해보기로 하였다. 그래도 뭔가 많이 어렵다.. Test04Stages using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class Test04Stage : MonoBehaviour { public enum eState { Lock, Open, Complete } //텍스트 [SerializeField] private TMP_Text[] arrTxtStageNum; //Lock, ..

LearnUGUI - Test04[Stage]

이 부분만 잘 사용하면 정보를 남아있게 사용할 수 있을 것 같다. Test04Stage using System; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class Test04Stage : MonoBehaviour { public Button btnComplete; public Button btnDoing; public GameObject lockGo; public Action onClick; public TMP_Text txtComplete; public TMP_Text txtDoing; // Start is called befo..

유니티 심화 2023.09.06

LearnUGUI - Practice04 [Stage]

UIPageNext using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UIPrevNext : MonoBehaviour { [SerializeField] private Button btnPrev; [SerializeField] private Button btnNext; private int totalStageNum = 40; // 총 스테이지 private int currentPageNum = 1; // 현재 페이지 private int maxStageNum = 18; // 한 페이지의 마지막 스테이지 private int endPageNum; // St..

유니티 심화 2023.09.06

[복습] LearnUGUI - Stage

수업 중간에 빠져서 뭐를 요구하는지 몰라서 코드를 보고 따라쳤다.. Test03UIMain using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Test03UIMain : MonoBehaviour { [SerializeField] private Test03UIStage uiStage; [SerializeField] private Button[] arrBtns; // Start is called before the first frame update void Start() { this.uiStage.Init(1); for (int i = 0; i < this...

fbx 파일 애니메이션

https://bombom3d.tistory.com/31 [unity]애니메이션 들어간 fbx 파일 유니티로 임포트 하기! 유니티 작업을 할 때, 애니메이션을 유니티로만 주기가 힘들다는 사실을 느끼게 됩니다. 그래프도 보기 어렵게 되어있을뿐더러 직접 하나하나 조정하기 힘들기 때문에 마야에서 애니메이션 작 bombom3d.tistory.com https://learnandcreate.tistory.com/536 유니티에서 fbx파일의 애니메이션 클립 복사하기 유니티에서 fbx파일의 애니메이션 클립 복사하기 1)프로젝트의 에셋 폴더에서 fbx파일의 애니메이션 클립을 선택한다. 2)상단의 edit 메뉴에서 duplicate를 선택한다(ctrl+d) 3)애니메이션 클립이 복사 learnandcreate.tist..

유니티 심화 2023.09.05

SaveAndLoad - UISlot

1. UISlot 1-1. Init 만들어서 id 받고 id 저장해두기 1-2 UISlot으로 뭘 하려고 만든거지? --> HeroData에서 id를 전달받고 전해줘서 UISlot에다가 저장시켜놓는다 >> 왜? --> UISlot은 UISlot Sciprts가 관리하는게 더 괜찮아보여서? HeroDatas를 List로 초기화 하는건 dictionary.Values를 배열로 받아야해서 2. App 2-1. UISlot[] for문으로 2-2. App using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using U..

유니티 심화 2023.09.01