■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で掴む機能には問題なしです。
Incorrect PIN <a href="http://www.pizzanews.co.uk/dawa-ya-diclofenac/">diclofenac sodium ointment</a> Without a Wall, there will be an almost inevitable reunification of Germany, creating a nation of 80 million people of near superpower status
Incorrect PIN <a href="http://www.pizzanews.co.uk/dawa-ya-diclofenac/">diclofenac sodium ointment</a> Without a Wall, there will be an almost inevitable reunification of Germany, creating a nation of 80 million people of near superpower status
Can I use your phone? <a href="http://pasen.com.cn/cilostazol-100-mg-precio-chile">pletal buy online</a> James is an avid news researcher, collector and junkie for all things science, health and technology
Can I use your phone? <a href="http://pasen.com.cn/cilostazol-100-mg-precio-chile">pletal buy online</a> James is an avid news researcher, collector and junkie for all things science, health and technology
I'm unemployed <a href="http://www.ehsandiary.ir/levitracanada/">natural levitra</a> So to Jennifer Lawrence et al I say this: crack a joke if you possibly can – but most of all, please don’t let ‘the shame’ own and define you
I'm unemployed <a href="http://www.ehsandiary.ir/levitracanada/">natural levitra</a> So to Jennifer Lawrence et al I say this: crack a joke if you possibly can – but most of all, please don’t let ‘the shame’ own and define you
I'd like to speak to someone about a mortgage <a href="http://www.ehsandiary.ir/levitracanada/">generic levitra online canada</a> Jonathan Spry, who joins from RBS, will take up the role of head of insurance solutions andadvisory.
I'd like to speak to someone about a mortgage <a href="http://www.ehsandiary.ir/levitracanada/">generic levitra online canada</a> Jonathan Spry, who joins from RBS, will take up the role of head of insurance solutions andadvisory.
I'm on business <a href="http://plateroytu.com/para-que-sirve-el-medicamento-plendil-de-5mg">felodipine reduce dosage</a> One of my sons went riding through the jungle, which was fine if a little too tame, while the other went kite surfing.
I'm on business <a href="http://plateroytu.com/para-que-sirve-el-medicamento-plendil-de-5mg">felodipine reduce dosage</a> One of my sons went riding through the jungle, which was fine if a little too tame, while the other went kite surfing.
How do you know each other? <a href="http://www.instalacioneshidraulicas.com/diclofenac-sodium-50-mg-dose/">diclofenac na 75 mg</a> "It’s been amazing for us, our members and all of Washington, D.C., to watch Bao Bao thrive and grow."
How do you know each other? <a href="http://www.instalacioneshidraulicas.com/diclofenac-sodium-50-mg-dose/">diclofenac na 75 mg</a> "It’s been amazing for us, our members and all of Washington, D.C., to watch Bao Bao thrive and grow."
Canada>Canada <a href="http://irconference.ir/duphaston-medicine-in-urdu/">duphaston iui tiredness</a> Overall I feel that the current share price looks about right, with probably some more upside possible over time."
Canada>Canada <a href="http://irconference.ir/duphaston-medicine-in-urdu/">duphaston iui tiredness</a> Overall I feel that the current share price looks about right, with probably some more upside possible over time."
Is it convenient to talk at the moment? <a href="http://dr123.me/forxiga-bula-anvisa">dapagliflozin smpc ema</a> For the new study, the team used data from previous research on breastfeeding conducted between 2005 and 2007
Is it convenient to talk at the moment? <a href="http://dr123.me/forxiga-bula-anvisa">dapagliflozin smpc ema</a> For the new study, the team used data from previous research on breastfeeding conducted between 2005 and 2007
The line's engaged <a href="http://www.sivits.org/precios-de-computadoras-hp-en-venezuela">buy cheap tadora</a> Teachers say the combination of skill, discipline, fun and danger make circus training an appealing activity for children.
The line's engaged <a href="http://www.sivits.org/precios-de-computadoras-hp-en-venezuela">buy cheap tadora</a> Teachers say the combination of skill, discipline, fun and danger make circus training an appealing activity for children.
In tens, please (ten pound notes) <a href="http://www.a1accommodation.com.au/zyban-available-uk">bupropion and sam-e</a> "Obviously, the pilot's and the co-pilot's good efforts were reflected in the fact that there were only minor injuries."
In tens, please (ten pound notes) <a href="http://www.a1accommodation.com.au/zyban-available-uk">bupropion and sam-e</a> "Obviously, the pilot's and the co-pilot's good efforts were reflected in the fact that there were only minor injuries."