投稿日: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で掴む機能には問題なしです。

 

I wanted to live abroad <a href="http://wilkinsplastering.co.uk/what-is-imodium-advanced.html">ibuprofen imodium interaction</a> The Knicks finished 18-6 for Woodson, made the playoffs, and managed to get a game off LeBron and the Heat

 I wanted to live abroad <a href="http://wilkinsplastering.co.uk/what-is-imodium-advanced.html">ibuprofen imodium interaction</a> The Knicks finished 18-6 for Woodson, made the playoffs, and managed to get a game off LeBron and the Heat

Where's the postbox? <a href="http://helpdeskplan.info/azijski-ginseng-gdje-kupiti/">indian ginseng wikipedia</a> That's far higher than what the UK government agreed to pay developers of a new nuclear reactor at Hinckley

 Where's the postbox? <a href="http://helpdeskplan.info/azijski-ginseng-gdje-kupiti/">indian ginseng wikipedia</a> That's far higher than what the UK government agreed to pay developers of a new nuclear reactor at Hinckley

No, I'm not particularly sporty <a href="http://heraldrybydesign.com/apo-propranolol-10-mg">propranolol prices usa</a> As the old saying goes, if Congress is going to have a role in the crash landing, it should have a role in the take-off

 No, I'm not particularly sporty <a href="http://heraldrybydesign.com/apo-propranolol-10-mg">propranolol prices usa</a> As the old saying goes, if Congress is going to have a role in the crash landing, it should have a role in the take-off

Languages <a href="http://www.kopekoteli.com.tr/benadryl-for-dogs">tylenol benadryl liver</a> Problem is, when they are all talking at once viewers can’t hear — or understand — what they are saying.

 Languages <a href="http://www.kopekoteli.com.tr/benadryl-for-dogs">tylenol benadryl liver</a> Problem is, when they are all talking at once viewers can’t hear — or understand — what they are saying.

I'd like to take the job <a href="http://www.lagripe.com/entocort-enema-comprar/ropex-vs-ogoplex">kosten entocort</a> Will 'Abenomics' goforward, or stop in its tracks? That is the question in thiselection," Abe told a news conference

 I'd like to take the job <a href="http://www.lagripe.com/entocort-enema-comprar/ropex-vs-ogoplex">kosten entocort</a> Will 'Abenomics' goforward, or stop in its tracks? That is the question in thiselection," Abe told a news conference

Could you ask her to call me? <a href="http://www.londonconnects.org.uk/waar-kan-ik-viagra-kopen-zonder-recept.cfm">virus took over email aol viagra</a> It takes this dress from a chic plain white number to an interesting and head-turning wardrobe piece

 Could you ask her to call me? <a href="http://www.londonconnects.org.uk/waar-kan-ik-viagra-kopen-zonder-recept.cfm">virus took over email aol viagra</a> It takes this dress from a chic plain white number to an interesting and head-turning wardrobe piece

I've got a full-time job <a href="http://www.cupinfo.com.au/silagra-bangkok/">silagra at working on guy</a> It was the same with the search for Richard’s remains — everyone presumed they were in the river Soar

 I've got a full-time job <a href="http://www.cupinfo.com.au/silagra-bangkok/">silagra at working on guy</a> It was the same with the search for Richard’s remains — everyone presumed they were in the river Soar

How much notice do you have to give? <a href="http://brain-stream.org/purchase-hydroxyurea-online/">hydrea london dry skin body brush</a> Consequently, you're likely to see more graduate-level social work scholarships and grants than in other fields.

 How much notice do you have to give? <a href="http://brain-stream.org/purchase-hydroxyurea-online/">hydrea london dry skin body brush</a> Consequently, you're likely to see more graduate-level social work scholarships and grants than in other fields.

Remove card <a href="http://www.kopekpansiyonu.com.tr/norfloxacin-400-mg-posologie.html">noroxin 400 mg dosage</a> Nina Kovtyukhova developed a unique means of achieving intercalation using oxygen in 1999

 Remove card <a href="http://www.kopekpansiyonu.com.tr/norfloxacin-400-mg-posologie.html">noroxin 400 mg dosage</a> Nina Kovtyukhova developed a unique means of achieving intercalation using oxygen in 1999

Please call back later <a href="http://comfortwoodcottage.co.uk/quibron-tab">quibron syrup</a> “But I later realized I was practicing all the time by memorizing the songs in the movies.”

 Please call back later <a href="http://comfortwoodcottage.co.uk/quibron-tab">quibron syrup</a> “But I later realized I was practicing all the time by memorizing the songs in the movies.”

Powered By

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