■Grabbable.csのランダム色変化について
※以前の記事の補足です。
オブジェクトにGrabbable.csを設定すると、シーンの開始と同時にランダムに色(正確にはシェーダー)が割り振られます。これはオブジェクト本来の色を使用したい場合、不要な機能です。
今回はGrabbable.csの該当部分をコメントアウトすることで、この機能を無効化します。
Grabbable.csを開きます。
30~32行目に色変化に関するコメントが記述してあります。(デモ目的でカラーチェンジ機能が実装されています。不要な場合は「color-changing support」と書いてある部分を削除することで簡単に取り除けます)と。
探してみると、85行目、98行目と、
117行目に、「color-changing support」という記述があります。ここらへんを削除すればOKです。
具体的には、86行目、99行目、126行目に、SetColor(m_color);という関数があるので、この関数の前に//を付けてコメントアウトしてしまえばOKです。
すると、色変化がなくなり、オブジェクト本来の色でシーンを実行することができます。もちろんOculusTouchで掴む機能には問題なしです。
We'd like to offer you the job <a href="http://harpnfiddle.org/indomethacin-50-mg-tablets.html">50mg indocin</a> "Lymphoedema is a chronic disease which is poorly recognised, leading to a delay in diagnosis and treatment
We'd like to offer you the job <a href="http://harpnfiddle.org/indomethacin-50-mg-tablets.html">50mg indocin</a> "Lymphoedema is a chronic disease which is poorly recognised, leading to a delay in diagnosis and treatment
It's OK <a href="http://www.kopekoteli.com.tr/order-valtrex">purchase valtrex canada</a> "I go for days without going to sea for my catch because of the frightening weather," he said
It's OK <a href="http://www.kopekoteli.com.tr/order-valtrex">purchase valtrex canada</a> "I go for days without going to sea for my catch because of the frightening weather," he said
A few months <a href="http://www.onedirection.co.uk/methylprednisolone-vs-prednisone-for-back-pain">methylprednisolone pregnancy first trimester</a> And Victor Cruz, whom they lost for the season to a knee injury, wasn’t just any player
A few months <a href="http://www.onedirection.co.uk/methylprednisolone-vs-prednisone-for-back-pain">methylprednisolone pregnancy first trimester</a> And Victor Cruz, whom they lost for the season to a knee injury, wasn’t just any player
Do you know each other? <a href="http://voyagermagazine.com.au/price-of-bimatoprost-in-canada/">latisse bimatoprost amazon</a> Furthermore, children whose mothers smoked during pregnancy are 50% more likely to have sight problems than other children.
Do you know each other? <a href="http://voyagermagazine.com.au/price-of-bimatoprost-in-canada/">latisse bimatoprost amazon</a> Furthermore, children whose mothers smoked during pregnancy are 50% more likely to have sight problems than other children.
Good crew it's cool :) <a href="http://urbanmission.co.uk/difference-tadalafil-tadacip">tadacip erectalis</a> Like-for-like sales were up 5 per cent, and the underlying pre-tax profit ballooned by more than a third to 12.6m
Good crew it's cool :) <a href="http://urbanmission.co.uk/difference-tadalafil-tadacip">tadacip erectalis</a> Like-for-like sales were up 5 per cent, and the underlying pre-tax profit ballooned by more than a third to 12.6m
Excellent work, Nice Design <a href="http://hypertension-medication.net/what-is-detrol-side-effects/">detrola record player belt replacement</a> “As time went on, a more concrete idea for the show emerged,” the suit says
Excellent work, Nice Design <a href="http://hypertension-medication.net/what-is-detrol-side-effects/">detrola record player belt replacement</a> “As time went on, a more concrete idea for the show emerged,” the suit says
An accountancy practice <a href="http://fanatic.ir/paxil-xr">paxil and sleep</a> What I have been offered on the NHS is an expensive surgical procedure to insert a pump in my spine that releases a muscle relaxant treatment when I feel a spasm coming on
An accountancy practice <a href="http://fanatic.ir/paxil-xr">paxil and sleep</a> What I have been offered on the NHS is an expensive surgical procedure to insert a pump in my spine that releases a muscle relaxant treatment when I feel a spasm coming on
I saw your advert in the paper <a href="http://hestelav.dk/generic-antabuse-online/">disulfiram over the counter ukulele</a> Instead, he accepted a ride from a man in a car with Illinois license plates, Pierce Gallagher, a state police captain, said.
I saw your advert in the paper <a href="http://hestelav.dk/generic-antabuse-online/">disulfiram over the counter ukulele</a> Instead, he accepted a ride from a man in a car with Illinois license plates, Pierce Gallagher, a state police captain, said.
I'm interested in this position <a href="http://drandrewbrown.co.uk/benzac-cvs.html">precio benzac ac wash</a> The International Monetary Fund has cut its forecast for China’s 2015 growth to 6.8%
I'm interested in this position <a href="http://drandrewbrown.co.uk/benzac-cvs.html">precio benzac ac wash</a> The International Monetary Fund has cut its forecast for China’s 2015 growth to 6.8%
Could you tell me my balance, please? <a href="http://trans-america.ca/about-caverta-50">caverta 50 reviews</a> It’s an office tradition that can create camaraderie, boost morale and provide escape from daily routine
Could you tell me my balance, please? <a href="http://trans-america.ca/about-caverta-50">caverta 50 reviews</a> It’s an office tradition that can create camaraderie, boost morale and provide escape from daily routine