일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- tcp
- 벨팡
- 명령어
- 나지보
- game
- 컬렉션 프레임
- 리눅스
- Collection Framework
- unity
- 스랄 특성
- 히오스
- 안드로이드
- 기업의 행포
- TCP 네트워크 방식의 연결
- 안드로이드 Application Lifecycle
- 비행기 모드
- php 홈디렉토리 변경방법
- 아이폰
- 게임
- tcp네트워크
- 변경된 정보
- 나지보 특성
- 자바
- 에셋
- 아이패드
- 집 정리
- 어플
- End of Darkness
- 소캣(Socket)
- 포트(Port)
- Today
- Total
목록Unity3D (108)
Do Something IT
Vector3.Distance와 magnitude는 같다 sqrMagnitude 는 위 두 값에 루트를 계산 하기 전의 값 즉 루트3 이면 = +-9의 절대값이다 이다 Vector3 tempDir = _endPos - _tranMy.position; float fDist = tempDir.sqrMagnitude; Debug.Log(tempDir.sqrMagnitude + " / " + tempDir.magnitude + " / " + Vector3.Distance(_endPos , _tranMy.position)); if (fDist < 10) 의 값은 9.734453 / 3.120008 / 3.120008 로 값이 찍히게 된다.
출처 : 바로가기 using UnityEngine; using System.Collections; public class TakeScreenShot : MonoBehaviour { public Camera RenderCam; public UITexture tex; private Texture2D image; private int width = 863, height = 402; public void CaptureImage() { RenderTexture rt = new RenderTexture(width, height, 24); image = new Texture2D(width, height, TextureFormat.ARGB32, false); //Camera settings RenderCam.aspec..
참조 : 바로가기 An asset is marked with HideFlags.DontSave but is included in the build:Asset: 'Library/unity editor resources'(You are probably referencing internal Unity data in your build.)UnityEditor.HostView:OnGUI() Building - Failed to write file: sharedassets0.assetsUnityEditor.HostView:OnGUI() Ignoring menu item NGUI because it is in no submenu! Ngui 3.9.8버전을 사용중인데 현재 라벨엔 Ngui 폰트 말고 Unity 시스템 ..
쫌 꼼수지만 아래와 같이 작동한다. 참조 바로가기 PrefabUtility.DisconnectPrefabInstance(obj); Object prefab = PrefabUtility.CreateEmptyPrefab("Assets/dummy.prefab"); PrefabUtility.ReplacePrefab(obj, prefab, ReplacePrefabOptions.ConnectToPrefab); PrefabUtility.DisconnectPrefabInstance(obj); AssetDatabase.DeleteAsset("Assets/dummy.prefab");