- UI를 번들에서 로드하도록 수정 했더니 메모리에 동일한 폰트가 중복으로 로드되는 현상이 발생
- 동일한 폰트여도 각 번들마다 개별적으로 로드되는 것으로 추정
- 폰트 에셋의 Include Font Data 체크 해제를 해주면 폰트가 번들에 포함되는것을 막을 수 있다.
- Include Font Data 체크를 해제하면 해당 폰트가 적용된 UI는 기본 폰트로 출력된다. 
- 작업은 체크를 한 상태에서 하고, TrueTypeFontImporter를 이용해 번들 빌드전에 includeFontData을 false로 만들어주고, 번들 빌드가 끝난 후 다시 true로 만들어 주면된다.(참고 : https://codingstarter.tistory.com/38)

 

IOS 11부터 UIImagePickerController를 사용하기 위한 권한 요청 필요없어짐.

https://eeyatho.tistory.com/141

 

Swift ) UIImagePickerController 권한 필요없음 - EEYatHo iOS

한줄 요약 iOS11부터, UIImagePickerController로 사진을 가져올 때는, 라이브러리 권한이 필요없게 되었습니다. [ 관련 WWDC17 영상 ] WWDC말고 관련된 문서가 없네요.. 정리좀 해놓지..ㅡ.ㅡ What's New in Phot..

eeyatho.tistory.com

https://developer.apple.com/videos/play/wwdc2017/505/?time=136

 

UnitySendMessage("GameObjectName1", "MethodName1", "Message to send");

 

모든 인자들의 타입은 Char* 이다.

NSString ( @"string")이 아님에 주의

 

 

https://docs.unity3d.com/kr/2017.4/Manual/PluginsForIOS.html

echo "PASSWORD" | sudo -S chmod -R 777 $PATH

 

  • echo 뒤 "PASSWORD" 자리에 비밀번호 입력
  • sudo -S에서 -S는 꼭 대문자 아니면 에러남, -S가 앞에 입력한 비밀번호를 받아 사용하게 하는 인자임
  • chmod -R 777 모든 권한을 주겠다는 의미

1. glob 이용

import glob

# 폴더에 있는 모든 파일 경로 가져오기
all_files = glob.glob("/test/temp/*")

# 폴더에 있는 text 파일 경로만 가져오기
text_files = glob.glob("/test/temp/*.txt")

# 폴더에 있는 json 파일 경로만 가져오기
json_files = glob.glob("/test/temp/*.json")

 

'Language > Python' 카테고리의 다른 글

[Python] float를 int로 변환  (0) 2021.06.10

코드

float_num = 10.111
int_num = round(float_num)

print(float_num)
print(int_num)

결과

10.111
10

 

 

'Language > Python' 카테고리의 다른 글

[Python] 폴더에 있는 파일 목록 확인하기  (0) 2021.07.19

https://github.com/neuecc/UniRx

https://www.assetstore.unity3d.com/kr/#!/content/17276


UniRx (Reactive Extensions for Unity) is a reimplementation of the .NET Reactive Extensions. The Official Rx implementation is great but doesn't work on Unity and has issues with iOS IL2CPP compatibility. This library fixes those issues and adds some specific utilities for Unity. Supported platforms are PC/Mac/Android/iOS/WP8/WindowsStore/etc and the library is fully supported on both Unity 5 and 4.6.


UniRx (Reactive Extensions for Unity)는 .NET Reactive Extension을 재구현 한 것.
공식 Rx는 훌륭하지만 Unity에서 작동하지 않으며 iOS IL2CPP 호환성 문제가 있음

UniRx는 이러한 문제를 해결하고 Unity용 유틸리티를 추가했음
PC/Mac/Android/iOS/WP8/WindowsStore 등의 플렛폼이 지원되며, Unity 5 & 4.6에서 완벽하게 사용가능


'Unity > Asset' 카테고리의 다른 글

[Zenject] - 의존성 주입(Dependency Injection, DI)  (0) 2017.11.05

Zenject Dependency Injection IOC


https://www.assetstore.unity3d.com/kr/#!/content/17758

https://github.com/modesttree/Zenject


Zenject is a lightweight dependency injection framework built specifically to target Unity. It can be used to turn the code base of your Unity application into a collection of loosely-coupled parts with highly segmented responsibilities. Zenject can then glue the parts together in many different configurations to allow you to easily write, re-use, refactor and test your code in a scalable and extremely flexible way. 


Zenject는 Unity용으로 제작된 가벼운 의존성 주입 프레임워크입니다.
Unity 코드 기반을 매우 세분화 되고, 의존성이 낮은 부품 모음으로 전환하는 데 사용할 수 있습니다.
그리고 다양한 구성으로 부품(기능들)을 서로 붙일 수 있어, 확장성이 좋고 매우 유연한 방식으로 쉬운 코딩, 재사용, 리팩터링 및 테스트를 할 수 있게합니다.


'Unity > Asset' 카테고리의 다른 글

[UniRX] - 반응형 프로그래밍  (0) 2017.11.09







다익스트라 알고리즘


1) 탐욕 알고리즘의 활용

2) 최단거리를 구하는 알고리즘

3) 음의 가중치(비용 음수)가 없을때 사용가능





다익스트라 알고리즘 순서


1) 출발점부터 체크 시작

2) '체크하는 노드'와 '연결된 노드'의 비용 업데이트

3) 다음 노드는 '체크하지 않은 노드' 중 '누적 비용'이 제일 낮은 노드를 선택

4) 모든 노드를 다 체크할때까지 반복




다익스트라 알고리즘 그림으로 보기

















다익스트라 알고리즘 코드 보기





'알고리즘 > 최적해 알고리즘' 카테고리의 다른 글

탐욕 알고리즘(Greedy Algorithm)  (0) 2017.02.16




탐욕 알고리즘(혹은 그리디 알고리즘)은 최적해를 구하는 방법 중 하나다.


매 순간마다 가장 최적인 것을 선택하는 방식으로, 최적해를 찾는다.





  • 가장 적은 동전으로 환전하기


탐욕 알고리즘은 가장 큰 동전부터 하나씩 환전하며


최적해를 찾는다.



       



이렇게 동전이 2개가 있을때, 1000원을 환전하면


500원 : 2개

100원 : 0개


총 2개의 동전으로 환전 가능하다.




  • 탐욕 알고리즘의 문제


              



여기에 600원 동전을 추가해보자


위와 같이 1000원을 환전해보면


600원 : 1개

500원 : 0개

100원 : 4개


총 5개의 동전으로 환전 가능하다.


이렇게 탐욕 알고리즘은 항상 최적의 결과를 보장하지 않는다.









+ Recent posts