■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で掴む機能には問題なしです。
It's OK <a href="http://zobbing.co.uk/tadacip-erectalis">cheapest tadacip</a> profit growth is seen grinding to anhalt this year, up 1.6 percent, I/B/E/S data shows.
It's OK <a href="http://zobbing.co.uk/tadacip-erectalis">cheapest tadacip</a> profit growth is seen grinding to anhalt this year, up 1.6 percent, I/B/E/S data shows.
Special Delivery <a href="http://bic-aaa.co.jp/max-effexor-xr-doses">venlafaxine tablets vs capsules</a> Dr Goldfarb remembers working on Cern's previous atom smasher, the LEP collider, which commenced operations in 1989
Special Delivery <a href="http://bic-aaa.co.jp/max-effexor-xr-doses">venlafaxine tablets vs capsules</a> Dr Goldfarb remembers working on Cern's previous atom smasher, the LEP collider, which commenced operations in 1989
Can you put it on the scales, please? <a href="http://anvil.me/order-cbd-flower">buy cbd flower online canada</a> The Bills missed two days of practice and had to fly to Detroit to prepare over the weekend
Can you put it on the scales, please? <a href="http://anvil.me/order-cbd-flower">buy cbd flower online canada</a> The Bills missed two days of practice and had to fly to Detroit to prepare over the weekend
We'd like to offer you the job <a href="http://hormone-replacement-therapy.com/zenegra-red-100/">how to buy zenegra in uk</a> Celebrate the arrival of the Brooklyn Nets to the Barclay Center by owning a pic of your favorite Net
We'd like to offer you the job <a href="http://hormone-replacement-therapy.com/zenegra-red-100/">how to buy zenegra in uk</a> Celebrate the arrival of the Brooklyn Nets to the Barclay Center by owning a pic of your favorite Net
Nice to meet you <a href="http://dr123.me/buy-discount-levothyroxine-with-no-prescription">levothyroxine pronunciation</a> That’s an advantage that Geno has over a lot of quarterbacks in this league.”
Nice to meet you <a href="http://dr123.me/buy-discount-levothyroxine-with-no-prescription">levothyroxine pronunciation</a> That’s an advantage that Geno has over a lot of quarterbacks in this league.”
I came here to work <a href="http://henleyoperatic.co.uk/comprar-keppra-venezuela">keppra xr and topamax</a> The dispute with Freeport had centred on its refusal to payan escalating mineral concentrate export tax and its bid toextend its mining contract
I came here to work <a href="http://henleyoperatic.co.uk/comprar-keppra-venezuela">keppra xr and topamax</a> The dispute with Freeport had centred on its refusal to payan escalating mineral concentrate export tax and its bid toextend its mining contract
I'm a member of a gym <a href="http://hormone-replacement-therapy.com/zenegra-red-100/">zenegra 100 use</a> It probably goes without saying, but ours is just an example and not one you should use
I'm a member of a gym <a href="http://hormone-replacement-therapy.com/zenegra-red-100/">zenegra 100 use</a> It probably goes without saying, but ours is just an example and not one you should use
Jonny was here <a href="http://oqu.com/cena-clindamycin-mip-300/">clindamycin kapsule cena</a> RAC Insurance polling believes only four per cent of drivers have dashcams in the UK - far behind Russia and elsewhere - but attitudes are changing fast
Jonny was here <a href="http://oqu.com/cena-clindamycin-mip-300/">clindamycin kapsule cena</a> RAC Insurance polling believes only four per cent of drivers have dashcams in the UK - far behind Russia and elsewhere - but attitudes are changing fast
Looking for a job <a href="http://italiannetwork.co.uk/amantadine-and-h1n1">amantadine oral</a> The Giants’ top four receiving spots are all but certain to go to Cruz, Randle, Jerrel Jernigan and rookie Odell Beckham Jr
Looking for a job <a href="http://italiannetwork.co.uk/amantadine-and-h1n1">amantadine oral</a> The Giants’ top four receiving spots are all but certain to go to Cruz, Randle, Jerrel Jernigan and rookie Odell Beckham Jr
Can you put it on the scales, please? <a href="http://www.sivits.org/digoxin-and-platelets">digoxin kinetics</a> Secretary of State John Kerry said on Friday, but the battle would falter if it becomes consumed by sectarian division or Islamophobia.
Can you put it on the scales, please? <a href="http://www.sivits.org/digoxin-and-platelets">digoxin kinetics</a> Secretary of State John Kerry said on Friday, but the battle would falter if it becomes consumed by sectarian division or Islamophobia.