■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で掴む機能には問題なしです。
An envelope <a href="http://www.noornews.ir/does-diltiazem-cause-cancer/">does diltiazem cause cancer</a> It added that he was one of the last two breeding males in the world as no northern white rhinos are believed to have survived in the wild.
An envelope <a href="http://www.noornews.ir/does-diltiazem-cause-cancer/">does diltiazem cause cancer</a> It added that he was one of the last two breeding males in the world as no northern white rhinos are believed to have survived in the wild.
I stay at home and look after the children <a href="http://www.kopekoteli.com.tr/toprol-xl-50">metoprolol cough</a> Olympic Committee meet Thursday, they'll be deciding on more than a city to put in the running to host the 2024 Summer Games
I stay at home and look after the children <a href="http://www.kopekoteli.com.tr/toprol-xl-50">metoprolol cough</a> Olympic Committee meet Thursday, they'll be deciding on more than a city to put in the running to host the 2024 Summer Games
Will I get travelling expenses? <a href="http://www.ehsandiary.ir/verapamil-cream-buy-uk/">isoptin side effects atrial fibrillation</a> An average of economists' growth forecasts is used as abasis for fiscal planning by the Canadian government
Will I get travelling expenses? <a href="http://www.ehsandiary.ir/verapamil-cream-buy-uk/">isoptin side effects atrial fibrillation</a> An average of economists' growth forecasts is used as abasis for fiscal planning by the Canadian government
Other amount <a href="http://heleneburrow.co.uk/buy-loperamide">nirvana imodium</a> The rebels took over the capital Sanaa in September eventually forcing President Abd .Rabbu Mansour Hadi to flee.
Other amount <a href="http://heleneburrow.co.uk/buy-loperamide">nirvana imodium</a> The rebels took over the capital Sanaa in September eventually forcing President Abd .Rabbu Mansour Hadi to flee.
I've got a part-time job <a href="http://www.ehsandiary.ir/verapamil-cream-buy-uk/">lek isoptin sr 120 cena</a> The attack killed a Turkish national and wounded several Western military personnel
I've got a part-time job <a href="http://www.ehsandiary.ir/verapamil-cream-buy-uk/">lek isoptin sr 120 cena</a> The attack killed a Turkish national and wounded several Western military personnel
Recorded Delivery <a href="http://fanatic.ir/captopril-capoten">captopril (capoten) adverse effects</a> Harvoni costs about $1,125 per pill, but the regimen can be completed in eight weeks for some patients, or $63,000.
Recorded Delivery <a href="http://fanatic.ir/captopril-capoten">captopril (capoten) adverse effects</a> Harvoni costs about $1,125 per pill, but the regimen can be completed in eight weeks for some patients, or $63,000.
No, I'm not particularly sporty <a href="http://spiritadventures.co.uk/cefixime-uses-for-infants">cefixime 3rd generation cephalosporin</a> He admitted to feeling as though he too became a bully for a time after his own victimization occurred
No, I'm not particularly sporty <a href="http://spiritadventures.co.uk/cefixime-uses-for-infants">cefixime 3rd generation cephalosporin</a> He admitted to feeling as though he too became a bully for a time after his own victimization occurred
Could I make an appointment to see ? <a href="http://drandrewbrown.co.uk/precio-calandria-acapulco.html">calan porter villas</a> But Damian Lillard’s double-double for Portland (28 points, 10 assists) carried the night.
Could I make an appointment to see ? <a href="http://drandrewbrown.co.uk/precio-calandria-acapulco.html">calan porter villas</a> But Damian Lillard’s double-double for Portland (28 points, 10 assists) carried the night.
I can't get through at the moment <a href="http://99beers.com/levlen-ed-side-effects">levlen ed cause acne</a> There have been more than 2,000 deaths, with worldwide condemnation and economic sanctions that have failed to stop Putin.
I can't get through at the moment <a href="http://99beers.com/levlen-ed-side-effects">levlen ed cause acne</a> There have been more than 2,000 deaths, with worldwide condemnation and economic sanctions that have failed to stop Putin.
I like watching football <a href="http://www.juko-in.or.jp/cost-of-tamsulosin-at-costco">otc flomax</a> consumers was $11.4 trillion, down from its third-quarter 2008 peak of $12.5 trillion
I like watching football <a href="http://www.juko-in.or.jp/cost-of-tamsulosin-at-costco">otc flomax</a> consumers was $11.4 trillion, down from its third-quarter 2008 peak of $12.5 trillion