公告版位
需要找什麼嗎? 左邊分類或許可以幫助你...

到 UICamera.cs 中尋找 Awake() 函式方法,並把 useKeyboard 改為 true

可按造自己需求做修改:

useTouch = true;
useMouse = true;
useKeyboard = true;
useController = true;


 

黃彥霖 發表在 痞客邦 留言(0) 人氣()

//--------------------------------------------------- Test.cs 

using UnityEngine;
using System.Collections;
using System.IO;
using System.Threading;

public class Test : MonoBehaviour {

HttpDownloadFile f = new HttpDownloadFile ();

    void Start () {
        new Thread (Download).Start (); // 建立一條執行緒

黃彥霖 發表在 痞客邦 留言(0) 人氣()

// 把這個腳本套用在攝影機中,沒意外左上角會出現攝影機照出來的貼圖

using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour {

    void OnGUI(){
        Texture2D texture = new Texture2D (Screen.width, Screen.height, TextureFormat.RGB24, false);
        texture.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0);
        texture.Apply(false, false);

黃彥霖 發表在 痞客邦 留言(1) 人氣()

修改 pg_hba.conf 檔案

加入可訪問的 IP 地址,如下:

-------------------------------------------

# TYPE DATABASE USER ADDRESS METHOD

# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 192.168.1.10/32 md5

黃彥霖 發表在 痞客邦 留言(0) 人氣()

http://placehold.it




黃彥霖 發表在 痞客邦 留言(0) 人氣()