❤❤Fungus新課程即將發布,快寫問卷拿優惠❤❤
顯示具有 plugin 標籤的文章。 顯示所有文章
顯示具有 plugin 標籤的文章。 顯示所有文章

2016年9月4日 星期日

Unity 教學 漫畫式對話框


影片已改為下載觀看 
http://www.morningfungame.com/p/unity-fungus_14.html


摘要:

1.開啟新專案

2.下載安裝fungus

3.開啟fungus視窗

4.新增必備的Stage 舞台物件

5.新增必備的Character 角色物件
名字顏色改黑色字
設定人物的Portait 大頭照

6.新增必備的SayDialog 自訂對話物件
在Panel的image可替換漫畫對話框底圖
修改panel大小以符合對話框底圖

7.新增必備的 Flowchart 流程物件

8.新增並註冊角色專屬的StagePosition 舞台位置物件

9.指定套用自訂的漫畫對話框(Set Say Dialog)

10.Narrative-->Portait 指定秀出大頭照
不是Narrative-->Say 裡面的Portait設定,別搞混喔,Say裡面的Portait大頭照會跟對話框裡的文字互相避開,所以另外指定顯示。然後打開Wait Until Finished選項,就會先秀出大頭照再出現對話框

11.設定對話:
熱情奔放,創意無限{wc}
在這個moment 要爆了


 =========影片裡使用到的素材========
Designed by Freepik
Designed by Freepik
Kevin MacLeod」創作的「Just Nasty」是根據「Creative Commons Attribution」(https://creativecommons.org/licenses/by/4.0/) 授權使用

2016年6月28日 星期二

Unity 階層視窗自動排序物件 Unity 5 Hierarchy Auto-Sorting objects




===
有位熱心網友指出其實不用自己貼代碼
在Edit\preferences\General裡打勾Enable Alpha Numeric sorting
就可以自動照字母順序排列了

若您有逆向排序的需求 還是可以參考下面的做法
===
 開一個c#的程式腳本貼入下面的代碼 或直接下載放到assets裡
"Copy and paste the code below into your new c# script
or put this file  in the assets folder

===============================

using UnityEngine;
using UnityEditor;

public class A_to_Z : BaseHierarchySort
    {

    public override int Compare ( GameObject lhs , GameObject rhs )
        {
        if ( lhs == rhs )  return  0;
        if ( lhs == null ) return -1;
        if ( rhs == null ) return  1;

        return EditorUtility.NaturalCompare ( lhs.name , rhs.name );
        }
    }

public class Z_to_A : BaseHierarchySort
    {

    public override int Compare ( GameObject lhs , GameObject rhs )
        {
        if ( lhs == rhs )  return  0;
        if ( lhs == null ) return  -1;
        if ( rhs == null ) return 1;

        return EditorUtility.NaturalCompare ( rhs.name , lhs.name );
        }
    }


你的階層圖就會多出一個星星按鈕
Then your Hierarchy will appear a new star button

可選擇A to Z順向排序或選擇Z to A 逆向排序物件
You can choose sorting objects by A to Z or Z to A