自分用めも

初心者ちっくなプログラムネタを中心に、自分用の覚え書きをメモっていくための場所です。

2016-02-01から1ヶ月間の記事一覧

bitbucketにgitプロトコルでアクセスする

git

git@bitbucket.org:アカウント名/リポジトリ名.gitUse the SSH protocol with Bitbucket Cloud - Atlassian Documentation

Unityでブラウザリンクを開く

Unity 5.3.2f1 (64-bit)。 public void Link(url) { #if UNITY_EDITOR Application.OpenURL(url); #elif UNITY_WEBGL Application.ExternalEval(string.Format("window.open('{0}','_blank')", url)); #else Application.OpenURL(url); #endif } ブラウザプ…

Unity(C#)で文字列フォーマット指定

Unity 5.3.2f1 (64-bit)。他の言語で言うところのsprintfのフォーマット。 毎度忘れるのでメモ using System; String.Format("文字列:あ{0}う", "い"); String.Format("複数代入&順序指定:あ{1}う{0}", new string[] { "え", "い" }); String.Format("制…

UnityのWebGLでUncaught unknown compression methodエラーになる場合の応急処置

Unity 5.3.2f1 (64-bit)。・apache ・mod_deflateは入れている ・にも関わらずchrome等のコンソールで下記エラーが出る Failed to load resource: the server responded with a status of 404 (Not Found) Invoking error handler due to Uncaught unknown c…