[unity/android] 유니티에서 안드로이드 외부저장소 정리(persistentDataPath/streaming Asset) 유니티 환경에서 외부 파일을 저장/불러오기 작업을 진행 하게되었는데, 생각보다 PC와는 환경이 달라서 공유합니다 [안드로이드 저장소] Application.persistentDataPath : /Android/data/com.YourProductName.YourCompanyName/files [파일 읽기/ 쓰기 가능] Application.dataPath : /data/app/번들이름-번호.apk Application.streamingAssetsPath : jar:file:///data/app/번들이름.apk!/assets [파일이 아닌 WWW로 읽기 가능] 안드로이드에서 스..
[unity/mediapipe] homuler/MediaPipeUnityPlugin 정상적으로 설치하기 본 글을 https://github.com/homuler/MediaPipeUnityPlugin GitHub - homuler/MediaPipeUnityPlugin: Unity plugin to run MediaPipe graphs Unity plugin to run MediaPipe graphs. Contribute to homuler/MediaPipeUnityPlugin development by creating an account on GitHub. github.com https://www.youtube.com/watch?v=eZbi08dNCOU 이양반의 미디어파이프 플러그인을 정상적으로 불러오고 ..
[유니티/unity] 시스템 볼륨 제어하기(win 32 dll 이용) 출저:https://stackoverflow.com/questions/50722026/how-to-get-and-set-system-volume-in-windows How to Get and Set System Volume in Windows I wanna set the OS volume on a certain level on keyboard click using unity and c# for example I wanna set the Windows volume(Not the unity) to 70: How Can I do that??? void Update() { if (I... stackoverflow.com 이전 방법 https:..
[Unity]유니티에서 Ftp 업로드 + 프로그래스바 구현(소스있음) #기존에 공유했던 FTP 라이브러리를 기반으로 Unity에서 FTP 업로드 샘플 프로그램을 만들었다 https://gofogo.tistory.com/95 #완성된 프로그램 #이미지와 텍스트를 이용하여 프로그래스바 구현 #기존 FTP 라이브러리 적용하여 연결 public class FtpController : MonoBehaviour { [SerializeField] Text txt_value; [SerializeField] Text txt_count; [SerializeField] Text txt_filename; [SerializeField] RectTransform pg; [SerializeField] int max_pg; Ftp ..
[unity/c#] RectTransform(2d개발) width or height 값 변경하기 #sizeDelta 값을 Vector2로 정의하여 수정하면 된다. RectTransform pg; pg.sizeDelta = new Vector2(0, 50); #recttransform #rect #transform #width #height #width 값 변경하기 #unity #유니티
#IniParser를 어셋 스토어에서 받는다. https://assetstore.unity.com/packages/tools/advanced-ini-parser-23706 Advanced INI Parser | 도구 | Unity Asset Store Get the Advanced INI Parser package from Project Boon and speed up your game development process. Find this & other 도구 options on the Unity Asset Store. assetstore.unity.com StreamingAssets폴더에 config.ini 파일을 만든다. #config.ini [Section] Width=1920 Height=1080..
[unity/c#] 유니티에서 강제로 해상도 지정하기 #아래와 같이 활용하면된다. // // Summary: // Switches the screen resolution. // // Parameters: // width: // // height: // // fullscreen: // // preferredRefreshRate: // // fullscreenMode: public static void SetResolution(int width, int height, bool fullscreen); //위의 정의를 활용하여 활용하면된다. Screen.SetResolution(1080, 1920, true); #unity #유니티 #해상도 #고정해상도 #resolution #c#
[unity/android] 유니티에서 안드로이드 권한(permission) 허용(팝업/수락) #코드 void Start() { #if PLATFORM_ANDROID if (!Permission.HasUserAuthorizedPermission(Permission.FineLocation)) { Permission.RequestUserPermission(Permission.FineLocation); } #endif } #AndroidManifest 간단히 권한을 허용할 수 있다 #unity #android #권한 #permission #허용 #ACCESS_FINE_LOCATION #android.permission
[unity/beacon] 유니티에서 비콘 사용하기(이벤트 핸들러방식 소스코드 source code) ####사용 전 주의 사항 #### 비콘을 이용하기 위해서는 위치정보가 필수이기때문에 꼭 허용한다음 이용하길 바란다 IBeaconReceiver를 활용하여 코드를 깔끔하게 이벤트 방식으로 정리하였다. #BeaconHelper 함수 구현 #설명: iBeaconReceiver Scan()은 실행 시 종료 전까지 스캔한 목록이 삭제 되지않고 누적이 되기 때문에 반드시 주기적으로 Stop() / Scan()을 반복하여 리스트를 관리하여야하낟. public class BeaconHelper : MonoBehaviour { //이벤트 핸들러 public delegate void PacketReceiveEventHa..