5월, 2017의 게시물 표시

How to load new scene asynchronously while displaying progress in Unity(in C#)

[Guitar Pro] Tomo Fujita - Kyoto

Guitar Pro: Download PDF(lead guitar only): Download

swiftで濁点のついた文字列の扱いについて(NFD, NFC)

Swift(3.1基準)で特殊文字の入った文字列を扱う場合、濁点や半濁点が他の文字と合体(?)して非常に分かりづらい状況になる事がある。 ☆.・。+ :゚ *。・ 上の文字列の中で 赤い 部分の様に"半濁点"が左の文字と合体(NFC状態)してしまって一つの文字として扱われてしまい、replacingOccurrences見たいな普通の文字検索や置換では扱えない場合がある。 こういった場合は文字列を"Unicode Scalar"単位で割って扱う必要がある。 詳細は下を参考しよう。 References - http://gootara.org/library/2016/10/sssjf.html - https://ko.wikipedia.org/wiki/유니코드_정규화 - https://another.rocomotion.jp/14368685864590.html

Use FFMPEG in XCode(for MacOS)

이미지
1. Download FFMPEG binary Visit https://ffmpeg.org -> Download -> Apple logo -> Download "Static builds for OS X Intel 64-bit". This will contain single ffmpeg binary. 2. Add "ffmpeg" from above as bundle resource 3.  Use Bundle to execute ffmpeg command You can also intercept console output from the process or interrupt the process when problem occurred. References - http://stackoverflow.com/a/37422688/2279149