/*add by HanSyaun for showing code on article. start*/ /*add by HanSyaun for showing code on article. end*/

2020年1月26日 星期日

使用Perforce時忽略不想要上傳的資料夾


在使用perforce時,不想要讓一些資料夾submit到depot上面,打開edit workspace卻發現"排除"的按鈕不能按。旁邊有提示,要edit stream's path configuration。
這時就對steam按右鍵選擇edit,然後再最下面的ignore依照官方網頁寫的方法加入你想要略過的資料夾就可以了。





最後,local端的檔案icon會顯示為虛線。
  
edit current workspace裡也會顯示ignore的資料夾。





2019年12月7日 星期六

mac 10.13.6 + xcode 9.3 + unity 2019.2 build .ipa到 ios12上

這次要用unity build到iphone上時發現,我的手機已經升級到ios12了,所以xcode 9.3也必須要升級(其實xcode10.1應該就行,最新版是xcode13),才能build給ios12。但是xcode13需要mac os10.15 (macOS Catalina),我的2010 mbp最高只能到mac os10.13(High Sierra)了。
所以會跳error: Could not locate device support files. 



查了一下,發現有辦法只複製Xcode裡的DeviceSupport就可以繼續build上新的ios。

xcode10 - Which version of Xcode support iOS 12.2? - Stack Overflow
https://stackoverflow.com/questions/54876861/which-version-of-xcode-support-ios-12-2 


2018年3月5日 星期一

[GDC筆記] Creating the Art of ABZU

 Creating the Art of ABZU

 開發三年,10個人,沒有固定的animator

1.魚的數量太多了沒辦法用rig,所以用static mesh instancing,類似像草的應用,然後魚的游擺動是vertex animation in material






















2.魚開口咬是blendshape sequence,有開口/往前兩個動作,序列再一起就是開口往前閉口往後。螃蟹走動跟鳥飛翔也是。

 





















2018年3月4日 星期日

Unity2017.2在Mac上使用profiler連結android

重點:
Unity官方文件寫的adb指令中的34999沒有用,依照網友分享,必須使用55000 ~ 55511,或者4600
The ADB Commnad's number 34999 that mention in Unity document is not working. You should use 55000~55111, or 4600 instead.

1.確認防火牆已經關閉



Unity 2017.2 canvas and object sorting problem

Just found out some weird result with my Unity project. I place a cube in front of  a UI image, which parent under a canvas and the canvas render mode is set to "screen space -camera".
On the editor it looks alright. But after I build it into an APK, the cube is behind the UI image.

The problem is because "depth and stencil buffer" is disabled in player setting. I kind of know about depth and stencil buffer but never thought about changing this setting will affect the sorting result of UI and Object. Hope this message helps anyone who bump into same issue.




2018年3月2日 星期五

Unity 2017.2 + Android 5.1.1 with Unity Remote 無法連結?

1.確定手機有打開開發者模式,並且打開USB偵錯模式。
2.Project Setting -> Editor,Unity Remote Device選Andorid
3.把Unity IDE關掉,Unity Remote也關掉,USB也拔掉。
4.接上USB,打開Unity Remote,打開Unity,按Play。

2018年2月27日 星期二

如何在MAC的Unity2017.2上面build出apk並上傳到googlePlay進行Alpha Test

系統平台:
OS:High Sierra 10.13.3
Unity: 2017.2

這次接的案子一開始,Unity都是設在ios平台下,方便我使用自己的iphone進行測試。合作公司在申請了google play帳號後加我加為開發人員,所以這次的任務是unity切平台到android並且build出apk放上google play商店,並且發佈alpha test給測試人員。

首先在build apk時就遭遇問題:
1.build的時候出現"Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.  See the Console for details."的Error。