본문 바로가기

전체 글691

블랜더 시민강좌 2일 돌돌 말린 종이물병, 물컵슬라임 치즈1치즈2 2023. 7. 11.
블랜더 시민강좌 1일 차 스마트폰 1스마트폰1의자충전기테이블, 닭 2023. 7. 11.
운수룰렛 스와이프로 바꾸기 클릭해서 돌리기 using System.Collections; using System.Collections.Generic; using UnityEngine; public class RouletteController : MonoBehaviour { float rotSpeed =0; //회전 속도 // Start is called before the first frame update void Start() { // 프레임레이트를 60으로 고정한다. Application.targetFrameRate = 60; } // Update is called once per frame void Update() { // 클릭하면 회전속도를 설정함 if (Input.GetMouseButtonDown(0)){ this.rot.. 2023. 7. 5.
카메라 컨트롤 using System.Collections; using System.Collections.Generic; using UnityEngine; public class SempleCamera : MonoBehaviour { [SerializeField] Transform followTarget; [SerializeField] float distance = 5; float rotationY; private void Update() { // 회전 카메랑와의 거리 transform.position = followTarget.position - Quaternion.Euler(0, 45, 0) * new Vector3(0, 0, distance); } } 카메라와 플레이어 사이의 거리 , 각도 지정하기 using S.. 2023. 7. 5.
메티리얼 문양 크기편집 Tiling 숫자 변경(클수록 작고 촘촘하게 나옴) 2023. 7. 5.
인벤토리2 (인벤토리창에 아이템이 안뜸) ----------------------------- --인벤토리 창 만들기-- 스크롤 뷰만들기(UI) > "Inventory" 이름바꾸기 Canvas > Canvas Scaler의 UI Scale Mode를 'Scale With Scen Size'로 바꾸고 x 1920, y 1080으로 변경 인벤토리 크기를 600 * 750으로 바꾸기, 닻은 우측중앙, 화면 끝에서 조금 떨어지게 위치조정, 이미지 넣고 불투명 최대 인벤토리 펼쳐서 스크롤 제어삭제 (vewpoint만 남기기) 인벤토리 안에 UI버튼 추가하기 > "CloseButton"이름 변경, 창 끄는 이미지넣고 위치조정 CloseButton의 OnClick 추가, Inventory 넣고 'GameObject', 'SetActive(bool)'선택 인.. 2023. 7. 5.