投稿日: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 want to to thank you for this great read!! I certainly enjoyed every little bit of it. I have you book marked to check out new things you postO" https://po-obzor-post.ucoz.org/news/naarvt_livvi_birvshlims_hattvb_bivtr/2022-01-19-21

?????

 "Excellent blog post. I definitely appreciate this website. Stick with it! " https://ac-nowost-post.ucoz.net

Xn729W <a href="http://qnwzyrggeime.com/">qnwzyrggeime</a>, [url=http://uoyamdrdpbdr.com/]uoyamdrdpbdr[/url], [link=http://kolurykcynlb.com/]kolurykcynlb[/link], http://hsuslbiuslfa.com/

 Xn729W <a href="http://qnwzyrggeime.com/">qnwzyrggeime</a>, [url=http://uoyamdrdpbdr.com/]uoyamdrdpbdr[/url], [link=http://kolurykcynlb.com/]kolurykcynlb[/link], http://hsuslbiuslfa.com/

?????

 "Greetings! Very useful advice in this particular article! It's the little changes that make the most important changes. Thanks for sharing!" http://tio-escort-israil.ml

?????

 "A fascinating discussion is worth comment. I believe that you need to write more about this topic, it might not be a taboo subject but generally folks don't speak about these topics. To the next! Cheers!!" http://king-escort-israely.cf

?????

 "I was very pleased to discover this website. I wanted to thank you for ones time just for this fantastic read!! I definitely appreciated every little bit of it and I have you book marked to see new things in your blog." https://aklavya.in/question/%d7%a0%d7%a2%d7%a8%d7%95%d7%aa-%d7%9c%d7%99%d7%95%d7%95%d7%99-2/

?????

 "I must thank you for the efforts you have put in writing this website. I really hope to see the same high-grade blog posts from you later on as well. In truth, your creative writing abilities has encouraged me to get my very own blog now ;)" https://wiki.r3public.org/index.php?title=%C3%97_%C3%97%E2%84%A2%C3%97%C2%A8%C3%97%E2%80%A2%C3%97%C2%AA%C3%97%E2%84%A2_%C3%97%C5%93%C3%97%E2%84%A2%C3%97%E2%80%A2%C3%97%E2%80%A2%C3%97%E2%84%A2_%C3%97%C5%93%C3%97%E2%80%BA%C3%97%C5%93_%C3%97%C3%97%E2%80%93%C3%97%E2%80%A2%C3%97%C2%A8%C3%97%E2%80%98%C3%97%E2%80%9C%C3%97%C2%A8%C3%97%E2%80%A2%C3%97

?????

 "Itís difficult to find experienced people in this particular subject, however, you seem like you know what youíre talking about! Thanks" http://52.174.6.235/wiki/%D7%93%D7%99%D7%A8%D7%95%D7%AA_%D7%93%D7%99%D7%A1%D7%A7%D7%A8%D7%98%D7%99%D7%95%D7%AA_%D7%91%D7%93%D7%A8%D7%95%D7%9D_-_%D7%9B%D7%9C_%D7%94%D7%A4%D7%A8%D7%98%D7%99%D7%9D_%D7%9B%D7%90%D7%9F_-_PusiMusi.com

http://imrdsoacha.gov.co/silvitra-120mg-qrms

 http://imrdsoacha.gov.co/silvitra-120mg-qrms

http://imrdsoacha.gov.co/silvitra-120mg-qrms

 http://imrdsoacha.gov.co/silvitra-120mg-qrms

Powered By

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