무료
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결[유니티 3D] FPS 서바이벌 디펜스
트랜지션 추가가 불가능하여 여쭤봅니다
사진처럼 transition추가가 불가능합니다. 노드에 transition하나를 추가하고 나니 우클릭 시 다른 창이 나오며 더이상의 transition을 생성할수가 없어 여쭤봅니다. - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
- 미해결[유니티 3D] FPS 서바이벌 디펜스
Rigidbody 오류
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { [SerializeField] private float walkSpeed; [SerializeField] private Rigidbody myRigid; // Start is called before the first frame update void Start() { myRigid = GetComponent<Rigidbody>(); } // Update is called once per frame void Update() { Move(); } private void Move() { float _moveDirX = Input.GetAxisRaw("Horizontal"); float _moveDirZ = Input.GetAxisRaw("Vertical"); Vector3 _moveHorizontal = transform.right * _moveDirX; Vector3 _moveVertical = transform.forward * _moveDirZ; Vector3 _velocity = (_moveHorizontal + _moveVertical).normalized * walkSpeed; myRigid.MovePosition(transform.position + _velocity * Time.deltaTime); } } 이렇게 작성했는데 MissingComponentException: There is no 'Rigidbody' attached to the "Player" game object, but a script is trying to access it. 오류가 나요 뭐가문제죠?
- 미해결[유니티 3D] FPS 서바이벌 디펜스
처음 playerscript 어디가 틀렸나요?
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour{ [SerializeField] private float walkSpeed; private Rigidbody myRigid; // Start is called before the first frame update void Start() { myRigid = GetComponent<Rigidbody>(); } // Update is called once per frame void Update(){ Move(); } private void Move() { float _moveDirX = input.GetAxisRaw("Horizontal"); float _moveDirZ = input.GetAxisRaw("Vertical"); Vector3 _moveHorizontal = transfrom.right * _moveDirX; Vector3 _moveVertical = transfrom.forward * _moveDirZ; Vector3 _velocity = (_moveHorizontal + _moveVertical).normalized * walkSpeed; myRigid.MovePosition(transfrom.position + _velocity * Time.deltaTime); } }
- 미해결[유니티 3D] FPS 서바이벌 디펜스
Asset 파일링크
강의 초반에 말씀해주신 Asset 파일 다운로드 링크가 어딨나요?
- 미해결[유니티 3D] FPS 서바이벌 디펜스
너무 작동이 안됩니다
잘 만들다가 계속 유니티가 안되서 그런데 메일로 보내주시면 안될까요?
- 미해결[유니티 3D] FPS 서바이벌 디펜스
에셋 안넣어져요
계속 금지 아이콘뜨고 에셋폴더에 안들어가요ㅠ
- 미해결[유니티 3D] FPS 서바이벌 디펜스
기본무기를 맨손으로 하고싶어요!
현재 근접무기 구현 강좌편 까지 마친상태인데 실행하면 처음에 나오는무기가 총으로 되어있어요 ㅠㅠ 맨손으로 바꾸고싶은데 어떻게하나요?
- 미해결[유니티 3D] FPS 서바이벌 디펜스
특정 아이템이 인벤토리에 존재하면 특정 행동을 할 수 있게 적용 하는 방법이 있나요?
예로 나뭇가지가 일정 수량이상일때 나무 벽을 만들 수 있게 하는 것처럼 시스템을 적용할 수 있을까요?
- 미해결[유니티 3D] FPS 서바이벌 디펜스
중간에 앉기 기능이 있는데 컨트롤키를 누르고 있을때만 앉아 있을수 없나요?
(사진)