到 UICamera.cs 中尋找 Awake() 函式方法,並把 useKeyboard 改為 true
可按造自己需求做修改:
useTouch = true;
useMouse = true;
useKeyboard = true;
useController = true;
到 UICamera.cs 中尋找 Awake() 函式方法,並把 useKeyboard 改為 true
可按造自己需求做修改:
useTouch = true;
useMouse = true;
useKeyboard = true;
useController = true;
//--------------------------------------------------- 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 (); // 建立一條執行緒
// 把這個腳本套用在攝影機中,沒意外左上角會出現攝影機照出來的貼圖
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);
修改 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
http://placehold.it