月別アーカイブ: 2015年4月

sublime text X git

Sublime Text を git commit のエディタにする

git commit の editor もSublime Textにしようとしたもののすんなり行かなかったのでメモ。

すんなり行かなかった理由は rbenv を入れていたから。

subl をインストール

Ruby Envのディレクトリを~/.rbenv/と命名していたのでここの下にbinをディレクトリを作成する。

続いて次のコマンドを入力することでSublime Textのコマンドラインツールであるsublが入る。

続きを読む

[Unity3d]インスペクタ上にはあるのにスクリプトからでは見つからないプロパティにアクセスする

きっかけ

Trailの色をスクリプトから変更できないか探していたところ、StackOverFlowに以下の様な質問が。

Trail Renderer Colors [C#]

I am creating a Trail Renderer that is modified in script (width, life, material, etc.) I was wondering if there is a way to change the colors array in script as well.

I’ve tried getting the game objects “colors” variable but it says that does not exist even though it is in blue.

This is what I tried:

回答として

The colors array isn’t accessible from the script API, unfortunately.

とあったりするので諦めかけつつスクロールさせると…

続きを読む