본문 바로가기

-/Unity3D 5.x17

유니티 에러, InitializeUnityExtensions: Must have a valid path for plugin[n] 발생한 유니티3D 버전 : 5.5.2f1 콘솔창에 아래와 같은 에러 문구가 나타났다. InitializeUnityExtensions: Must have a valid path for plugin[n] Assets에서 Reimport All 을 실행하니 해결 됨. 2017. 4. 4.
Unity3D 5.1.2f에서 SVN을 이용한 버전관리를 해보자. 작업 환경OS : Windows10Unity : 5.1.2f1 확인 할 점.+ 유니티 자체는 git은 지원하지만 SVN은 지원하지 않는다.+ 에셋 스토어에서 SVN관련 모듈이 있기는 하다.+ 이 포스팅에서 SVN 서버 구축에 대해서는 다루지 않습니다. 준비 할 것.+ SVN 저장소 (윈도우 설치형 저장소로는 VisualSVN이나 NHN의 요비 같은 것이 있다.)+ Tortoise SVN+ Unity3D 5.x 1. 유니티 설정1-1 SVN을 이용 할 프로젝트를 연다.1-2 상단의 메뉴에서 Edit > Project Settings > Editor 1-3 Editor Settings 에서 Version Control의 값을 Visible Meta Files로 변경하고,Asset Serialization의 .. 2015. 9. 3.
유니티3D 진동 발생시키기 레퍼런스 : http://docs.unity3d.com/ScriptReference/Handheld.Vibrate.html 아래 코드를 호출하면 진동을 1초간 발생시킨다고하며, 강약, 시간조절은 불가능하다고 한다. Handheld.Vibrate(); #작성 기준 유니티3D 5.0 2015. 7. 25.
유니티3D 작동 중인 플랫폼 확인하기. Application.platform public static RuntimePlatform platform; RuntimePlatform 값을 리턴함으로 이 것을 이용하여 조건문을 짜려면,아래와 같은 방식으로 이용하면 된다. if( Application.platform == RuntimePlatform.Windows.Player ) RuntimePlatform 레퍼런스 : http://docs.unity3d.com/ScriptReference/RuntimePlatform.html 런타임플랫폼의 값OSXEditor- In the Unity editor on Mac OS X.OSXPlayer- In the player on Mac OS X.WindowsPlayer- In the player on Window.. 2015. 7. 25.
유니티3D, 화면 기준으로 2d 좌표를 3d 좌표로 혹은 반대로 Camera.ScreenToWorldPoint화면 공간의 위치를 월드 공간에 위치로z 값은 카메라의 월드 좌표값을 사용. 1234567891011121314// Draw a yellow sphere in the scene view at the position// on the near plane of the selected camera that is// 100 pixels from lower-left.using UnityEngine;using System.Collections; public class ExampleClass : MonoBehaviour { void OnDrawGizmosSelected() { Camera camera = GetComponent(); Vector3 p = camera.Scre.. 2015. 6. 16.
유니티3D, 게임 오브젝트를 특정 대상을 바라보게 하기 방법1) Quaternion.LookRotation1234567public Transform target;void Update() { Vector3 vec = target.position - transform.position; vec.Normalize(); Quaternion q = Quaternion.LookRotation(vec); transform.rotate = q;}Colored by Color Scriptercs 관련 유니티 문서 #http://docs.unity3d.com/ScriptReference/Quaternion.LookRotation.html 방법2) Transform.LookAt12345public Transform target;void Update() { // Rotate the.. 2015. 5. 26.
320x100