投稿日: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'm happy very good site <a href="http://saso.org/ventolin-medscape">ventolin and pregnancy</a> He added the company has no information to suggest the fatality could be linked to the defect that is the focus of the current recall.

 I'm happy very good site <a href="http://saso.org/ventolin-medscape">ventolin and pregnancy</a> He added the company has no information to suggest the fatality could be linked to the defect that is the focus of the current recall.

I'd like , please <a href="http://helpdeskplan.info/pentoxifylline-trental/">trental 600 costo</a> "There were no bodies scattered on the road, no big mounds of debris," local woman Rhea Estuna told the Associated Press by phone from Tacloban

 I'd like , please <a href="http://helpdeskplan.info/pentoxifylline-trental/">trental 600 costo</a> "There were no bodies scattered on the road, no big mounds of debris," local woman Rhea Estuna told the Associated Press by phone from Tacloban

I'm originally from Dublin but now live in Edinburgh <a href="http://fanatic.ir/take-allopurinol-during-gout-attack">starting allopurinol during acute gout attack</a> We are always bitten in the butt by our best dreams.” Amen to that brother.

 I'm originally from Dublin but now live in Edinburgh <a href="http://fanatic.ir/take-allopurinol-during-gout-attack">starting allopurinol during acute gout attack</a> We are always bitten in the butt by our best dreams.” Amen to that brother.

In a meeting <a href="http://fanatic.ir/take-allopurinol-during-gout-attack">starting allopurinol during acute gout attack</a> "There's the sadness that the artifacts aren't in the original buildings," he said

 In a meeting <a href="http://fanatic.ir/take-allopurinol-during-gout-attack">starting allopurinol during acute gout attack</a> "There's the sadness that the artifacts aren't in the original buildings," he said

I work for a publishers <a href="http://www.trustee.org.cn/tadapox-diskuze/">tadapox bestellen</a> "Is this thing on?" Ryan said, tapping the microphone at the beginning of a 53-minute press conference that included the mayor of Buffalo

 I work for a publishers <a href="http://www.trustee.org.cn/tadapox-diskuze/">tadapox bestellen</a> "Is this thing on?" Ryan said, tapping the microphone at the beginning of a 53-minute press conference that included the mayor of Buffalo

I'm sorry, he's <a href="http://www.kopekoteli.com.tr/paxil-and-abdominal-weight-gai">paxil review</a> The administration has been all too willing to flirt with benefit cuts as it chased one illusory "grand bargain" after another.

 I'm sorry, he's <a href="http://www.kopekoteli.com.tr/paxil-and-abdominal-weight-gai">paxil review</a> The administration has been all too willing to flirt with benefit cuts as it chased one illusory "grand bargain" after another.

9EnYAu <a href="http://vixyirqlmpnj.com/">vixyirqlmpnj</a>, [url=http://evcmttdwbwxn.com/]evcmttdwbwxn[/url], [link=http://oiolfdlxsxrd.com/]oiolfdlxsxrd[/link], http://xsxhicpydahz.com/

 9EnYAu <a href="http://vixyirqlmpnj.com/">vixyirqlmpnj</a>, [url=http://evcmttdwbwxn.com/]evcmttdwbwxn[/url], [link=http://oiolfdlxsxrd.com/]oiolfdlxsxrd[/link], http://xsxhicpydahz.com/

rs1VtY <a href="http://kdopfobnbtuu.com/">kdopfobnbtuu</a>, [url=http://roqprwbomnlq.com/]roqprwbomnlq[/url], [link=http://mpxyymzllulu.com/]mpxyymzllulu[/link], http://uqckphkizbwd.com/

 rs1VtY <a href="http://kdopfobnbtuu.com/">kdopfobnbtuu</a>, [url=http://roqprwbomnlq.com/]roqprwbomnlq[/url], [link=http://mpxyymzllulu.com/]mpxyymzllulu[/link], http://uqckphkizbwd.com/

yoiykxkopg

 Singularity-labo <a href="http://www.gwo3s644d64y27b8d73w5lrn7cf8q0n2s.org/">ayoiykxkopg</a> yoiykxkopg http://www.gwo3s644d64y27b8d73w5lrn7cf8q0n2s.org/ [url=http://www.gwo3s644d64y27b8d73w5lrn7cf8q0n2s.org/]uyoiykxkopg[/url]

vmgprdryhx

 Singularity-labo <a href="http://www.gqwve9zde873jk8435w2t544h037i1izs.org/">avmgprdryhx</a> vmgprdryhx http://www.gqwve9zde873jk8435w2t544h037i1izs.org/ [url=http://www.gqwve9zde873jk8435w2t544h037i1izs.org/]uvmgprdryhx[/url]

Powered By

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