이전 게시물들/메모1 (10) 썸네일형 리스트형 Unity Key Store 생성 키 스토어 이름은 변경 불가 Password, Confirm Password : 키 스토어의 비밀번호, 비밀번호 확인 Alias : 키의 이름 Password, Confirm Password : 키의 비밀번호, 비밀번호 확인 Validity : 키의 유효기간(년, 50~1000 사이) First and Last Name : 이름과 성 Organizational Unit : 팀 이름 Organizational : 회사 이름 City or Locality : 시, 군, 구 State or Province : 도, 시 Country Code : ko or kr 키스토어는 안드로이드의 앱 보안 시스템이다. Play Store에 게시할 때도 필요하다. 앱의 무단 수정을 막을 수 있다. 회사 단위로 키 스토어를 만.. Raycast가 UI를 통과하지 않게! EventSystem.current.IsPointerOverGameObject() Unitiy MultiPlatform using System.Collections; using System.Collections.Generic; using UnityEngine; public class MultiPlatform : MonoBehaviour { #if UNITY_STANDALONE #elif UNITY_IOS || UNITY_ANDROID #endif } Comparetag로 tag 비교하기 Random.Range(int, int) Random.Range(int a, int b)는 a ~ (b-1)의 정수를 리턴한다. b는 리턴 안한는다. RigidBody를 이용한 이동, 회전2 설명 대각선 속도가 더 빨라지는 경우 해결: normalized moveSpeed변경으로 달리기 구현 코드 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public float walkSpeed; public float runSpeed; private Rigidbody playerRigidbody; void Start() { playerRigidbody = GetComponent(); } void FixedUpdate() { Move(); } void Move() { Vector3 input = new Vector3(Input.GetAxisRa.. Player 이동, 애니메이션 using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerInput : MonoBehaviour { public string VmoveAxisName = "Vertical";//축 이름 public string HmoveAxisName = "Horizontal";//축 이름 public Vector3 move;//축 입력값 public bool fire;//버튼 입력값 void Update() { move = new Vector3(Input.GetAxis(HmoveAxisName), 0f, Input.GetAxis(VmoveAxisName)); } } PlayerInput.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerInput : MonoBehaviour { public string VmoveAxisName = "Vertical";//축 이름 public string HmoveAxisName = "Horizontal";//축 이름 public Vector3 move;//축 입력값 public bool fire;//버튼 입력값 void Update() { move = new Vector3(Input.GetAxis(HmoveAxisName), 0f, Input.GetAxis(VmoveAxisName)); } } 이전 1 2 다음