Unityの覚書

個人的にUnityでやった記録しときたいことを書いておきます

嶋津2D脱出ゲームの実機にしたときの画面サイズがおかしいとこの直し方

  • Title、Main、Clearのそれぞれのシーン
    • オブジェクトのCanvas
      • Canvas Scaler
        • UI Scale Mode
          • Scale With Screen
          • これに変更する
            • Reference Resolution
            • Xを720に変更する
            • Yは変更しなくてよい
  • これで実機解像度が1980とかでも画面いっぱいになる
  • 横長のタブレットとかは未確認

unity 実機テストのやり方

  • 実機側準備
    • 機種:Xiomi Redmi note s
    • 設定
      • バイス情報
        • MIUIバージョン
          • 7回クリックして開発者モードON
      • 追加設定
        • 開発者向けオプション
          • 開発者向けオプション トグルON
          • USBデバッグ トグルON
    • PCとUSB接続しておく
  • Unity側
    • [File]
      • [Build Settings]
        • [Android]
          • [Run Devive]
            • つないだスマホ選択
            • でなかったら
              • 繋がっていない
              • スマホ側の設定
              • Unity側の[Refresh]
          • [Build And Run]
          • スマホ側でインストールのポップアップでる
          • 起動

xampp エラ続き

http://www.apachefriends.org/f/viewtopic.php?p=198468

上記サイトいわく

The error you are getting is not a XAMPP error actually its a Windows OS error
[mpm_winnt:error] [pid 3452:tid 1628] (OS 10038)
Windows can't configure a socket for you.

Ok - next thing to try

You may have a corrupt TCP/IP stack

Command Window > Run as Administrator


netsh winsock reset


xamppのエラーじゃなくてwindows側のエラーとのこと。

ソケットがおかしい?

netsh winsock resetをコマンドプロンプトから実行。

これから再起動。


再起動後

apacheにエラーなし!

とりあえず成功?????!!!!!!

XAMPP - Session Cache is not configuredの対応

http://stackoverflow.com/questions/16644064/xampp-session-cache-is-not-configured-hint-sslsessioncache

上記URLの対策

Here are the instructions how to get rid of the SSLSessionCache message in XAMPP

1) Open file \xampp\apache\conf\httpd.conf

2) Somewhere in the LoadModule area add the following line:

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
3) Save the file

4) Now open file \xampp\apache\conf\extra\httpd-ssl.conf

5) at line 70 add the line

SSLSessionCache "shmcb:logs/ssl_scache(512000)"
6) Save the file

7) Restart Apache

をやってみたところSSLは動くようになったみたい。

だが、1067エラーはで続けている。

xamppでのエラー

xamppコントロールパネルよりapacheを起動しようとすると

18:09:26 [Apache] Attempting to start Apache service...
18:09:30 [Apache] There may be an error, return code: 1067 - プロセスを途中で強制終了しました。
18:09:30 [Apache] Status change detected: running

とエラーを吐く。


errorログを見ると

Session Cache is not configured

と出ている


http://aibeeaqua.blog75.fc2.com/blog-entry-878.html
上記URLの対策を取る。

apachehttpd.confの

Include "conf/extra/httpd-ssl.conf"

の行をコメントアウトするというもの。


コメントアウトしたものの変化なし?


SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

コメントアウトしてみるが変化なし。