投稿日:2017年11月01日  カテゴリー:VR  投稿者:SingularityMaster

■Grabbable.csのランダム色変化について

以前の記事の補足です。

 

 

オブジェクトに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で掴む機能には問題なしです。

 

Best Site good looking <a href="http://www.juko-in.or.jp/abilify-generique-prix">abilify ila fiyat</a> She began her acting career as a teenager under innovative Austrian director Max Reinhardt and appeared in several German films.

 Best Site good looking <a href="http://www.juko-in.or.jp/abilify-generique-prix">abilify ila fiyat</a> She began her acting career as a teenager under innovative Austrian director Max Reinhardt and appeared in several German films.

The line's engaged <a href="http://www.freshfurniture.co.uk/how-to-use-suhagra-50-tablet/">suhagra hot</a> But after a few weeks, I had my medial injury and was out for four months so that was that.

 The line's engaged <a href="http://www.freshfurniture.co.uk/how-to-use-suhagra-50-tablet/">suhagra hot</a> But after a few weeks, I had my medial injury and was out for four months so that was that.

I'm afraid that number's ex-directory <a href="http://www.lasvegascomplaints.com/zydena-vs-viagra/">udenafil vs cialis</a> Nationally, AAA predicts 34.7 million Americans will make venture out between Aug

 I'm afraid that number's ex-directory <a href="http://www.lasvegascomplaints.com/zydena-vs-viagra/">udenafil vs cialis</a> Nationally, AAA predicts 34.7 million Americans will make venture out between Aug

I like watching TV <a href="http://www.lasvegascomplaints.com/zydena-vs-viagra/">zudena</a> When Chelsea celebrated winning the cup I think they were also enjoying the fact that Manchester City had lost to Liverpool earlier in the day

 I like watching TV <a href="http://www.lasvegascomplaints.com/zydena-vs-viagra/">zudena</a> When Chelsea celebrated winning the cup I think they were also enjoying the fact that Manchester City had lost to Liverpool earlier in the day

Would you like to leave a message? <a href="http://www.eidon.se/crestor-prix-quebec/">cost of crestor at costco pharmacy</a> "The fact that there are no ducks here would indicatethat it's not ducks in Minnesota."

 Would you like to leave a message? <a href="http://www.eidon.se/crestor-prix-quebec/">cost of crestor at costco pharmacy</a> "The fact that there are no ducks here would indicatethat it's not ducks in Minnesota."

Photography <a href="http://theformationquest.org/plavix-acute-myocardial-infarction.htm">plavix medication assitance</a> I spoke to her on the phone two days ago and she told me she'd spent a fabulous week, one of the best of her life."

 Photography <a href="http://theformationquest.org/plavix-acute-myocardial-infarction.htm">plavix medication assitance</a> I spoke to her on the phone two days ago and she told me she'd spent a fabulous week, one of the best of her life."

A Second Class stamp <a href="http://plantfoods.org/buy-zydena-udenafil.html">zydone manufacturer</a> So far this year, central banks in emerging economies as diverse as Indonesia, India, Romania, Peru and Turkey have been cutting interest rates.

 A Second Class stamp <a href="http://plantfoods.org/buy-zydena-udenafil.html">zydone manufacturer</a> So far this year, central banks in emerging economies as diverse as Indonesia, India, Romania, Peru and Turkey have been cutting interest rates.

An envelope <a href="http://www.highlandera-z.co.uk/zenegra-100-cheap.htm">zenegra 100 dosage</a> “Because that shows you’re not looking (out) for the welfare of the children

 An envelope <a href="http://www.highlandera-z.co.uk/zenegra-100-cheap.htm">zenegra 100 dosage</a> “Because that shows you’re not looking (out) for the welfare of the children

Could you tell me the dialing code for ? <a href="http://anvil.me/wellbutrin-sr-mg">gain loss weight wellbutrin</a> Macklowe became the poster boy for the last bust when he was forced to sell the iconic General Motors building on Fifth Ave

 Could you tell me the dialing code for ? <a href="http://anvil.me/wellbutrin-sr-mg">gain loss weight wellbutrin</a> Macklowe became the poster boy for the last bust when he was forced to sell the iconic General Motors building on Fifth Ave

I'll send you a text <a href="http://kopekciftligi.com.tr/flonase-dosage-for-nasal-polyps">fluticasone salmeterol moa</a> I have concluded that to end the uncertainty it would be preferable, instead, to step down at the end of this Parliament.

 I'll send you a text <a href="http://kopekciftligi.com.tr/flonase-dosage-for-nasal-polyps">fluticasone salmeterol moa</a> I have concluded that to end the uncertainty it would be preferable, instead, to step down at the end of this Parliament.

Powered By

Copyright (C) 2017 テクノロジーカフェシンギュラリティ. All Rights Reserved.