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

 

?????

 https://cialiswithdapoxetine.com/ cialis 20mg

?????

 cheap cialis <a href="https://cialiswithdapoxetine.com/#">generic cialis</a>

?????

 https://cialiswithdapoxetine.com/ cialis 20mg

?????

 <a href="https://cialiswithdapoxetine.com/#">can ubuy cialis on streets</a> cialis 20mg

?????

 <a href="https://cialiswithdapoxetine.com/#">cialis generic</a> cheap cialis

?????

 "Next time I read a blog, I hope that it won't fail me as much as this one. After all, I know it was my choice to read, nonetheless I truly believed you would have something useful to talk about. All I hear is a bunch of complaining about something that you could possibly fix if you weren't too busy searching for attention." https://tinyurl.com/y824s9yz

?????

 "Right here is the right blog for anybody who wishes to find out about this topic. You realize so much its almost tough to argue with you (not that I personally would want toOHaHa). You definitely put a brand new spin on a subject that has been written about for years. Excellent stuff, just great!" https://tinyurl.com/ybyzc2yp

?????

 "Can I simply say what a relief to discover somebody who actually knows what they're discussing online. You definitely realize how to bring a problem to light and make it important. More people have to read this and understand this side of your story. I was surprised that you are not more popular given that you surely possess the gift." https://tinyurl.com/yaxs3ozj

?????

 "When I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the exact same comment. Is there an easy method you are able to remove me from that service? Kudos!" https://web-nowosti-bue.ucoz.org/news/dirvt_diskrttivt_bkriit_mvckiv_hattvb_bivtr/2022-01-19-101

?????

 "Good day! I just wish to offer you a big thumbs up for your excellent information you've got right here on this post. I will be returning to your web site for more soon." https://ver-post-nowost.clan.su

Powered By

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