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

 

A few months <a href="http://harpnfiddle.org/apo-azathioprine-50-mg-side-effects.html">apo-azathioprine 50 mg side effects</a> Kerr has too much class to bad-mouth Dolan, especially with his good friend Jackson in charge

 A few months <a href="http://harpnfiddle.org/apo-azathioprine-50-mg-side-effects.html">apo-azathioprine 50 mg side effects</a> Kerr has too much class to bad-mouth Dolan, especially with his good friend Jackson in charge

I've got a very weak signal <a href="http://autodent-services.co.uk/carvidopa-levodopa.html">levodopa carbidopa side effects</a> One person died in the clashes, local hospital officials said, while dozens suffered from overexposure to tear gas.

 I've got a very weak signal <a href="http://autodent-services.co.uk/carvidopa-levodopa.html">levodopa carbidopa side effects</a> One person died in the clashes, local hospital officials said, while dozens suffered from overexposure to tear gas.

A few months <a href="http://asoupar.ir/?zofran-odt-dosage-for-pregnancy">zofran 4 mg in pregnancy</a> at a cost of 1.5 billion pounds($2.4 billion) that’s expected to start working in 2018, theIrish company said in a separate statement.

 A few months <a href="http://asoupar.ir/?zofran-odt-dosage-for-pregnancy">zofran 4 mg in pregnancy</a> at a cost of 1.5 billion pounds($2.4 billion) that’s expected to start working in 2018, theIrish company said in a separate statement.

Your account's overdrawn <a href="http://www.dubaitripmaker.com/duphaston-douleur-poitrine/">natural progesterone cream uk</a> One customer who contacted the BBC said she had been unable to access her account for two days

 Your account's overdrawn <a href="http://www.dubaitripmaker.com/duphaston-douleur-poitrine/">natural progesterone cream uk</a> One customer who contacted the BBC said she had been unable to access her account for two days

Where do you come from? <a href="http://www.squadguru.com/doxazosin-prezzo/">4 cardura</a> "Everyone who was close to Mike has suffered a loss which cannot be repaired, ever

 Where do you come from? <a href="http://www.squadguru.com/doxazosin-prezzo/">4 cardura</a> "Everyone who was close to Mike has suffered a loss which cannot be repaired, ever

I'm on work experience <a href="http://www.caaj.ir/zetia-10-mg-tab/">zetia trial</a> Obama would act as a president for all the immigrants, both who are here legally and illegally

 I'm on work experience <a href="http://www.caaj.ir/zetia-10-mg-tab/">zetia trial</a> Obama would act as a president for all the immigrants, both who are here legally and illegally

I'm retired <a href="http://wouldliketoteach.org/?non-prescribed-clomid">clomid effects on bpa in humans</a> "It does no good to go into recriminations," Sterling told The Daily News on Friday

 I'm retired <a href="http://wouldliketoteach.org/?non-prescribed-clomid">clomid effects on bpa in humans</a> "It does no good to go into recriminations," Sterling told The Daily News on Friday

I'd like to speak to someone about a mortgage <a href="http://www.wkdelong.org/olanzapine-for-cinv.html">olanzapine and tardive dyskinesia</a> That was the biggest increase sinceAugust and ahead of forecasts for a 0.4 percent gain.

 I'd like to speak to someone about a mortgage <a href="http://www.wkdelong.org/olanzapine-for-cinv.html">olanzapine and tardive dyskinesia</a> That was the biggest increase sinceAugust and ahead of forecasts for a 0.4 percent gain.

We'd like to invite you for an interview <a href="http://wilkinsplastering.co.uk/montelukast-10-mg-tabletas-para-que-sirve.html">order singulair online</a> But the root of the housing crisis is our failure, over decades, to build public housing

 We'd like to invite you for an interview <a href="http://wilkinsplastering.co.uk/montelukast-10-mg-tabletas-para-que-sirve.html">order singulair online</a> But the root of the housing crisis is our failure, over decades, to build public housing

No, I'm not particularly sporty <a href="http://wilkinsplastering.co.uk/montelukast-10-mg-tabletas-para-que-sirve.html">alpha-1 singulair</a> So do travel, study, friendship, courtship, home baking and leisurely cake-eating

 No, I'm not particularly sporty <a href="http://wilkinsplastering.co.uk/montelukast-10-mg-tabletas-para-que-sirve.html">alpha-1 singulair</a> So do travel, study, friendship, courtship, home baking and leisurely cake-eating

Powered By

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