5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LineRendererの色が変えれないあなたへ(自分のことです)

Posted at

はじめに

  • OculusGoのコントローラーにレーザーポインタ付けたら色が全然変えれなくなって慌てたのでメモ。

症状

  • コントローラー指す方向をわかりやすくするためにレーザーポインタを付けたが、色が全然変えれなかった(マゼンダのまま)
    • 昔は気にしないで変更してたのになぁ、、、
    • LineRendererのColorはちゃんと変更してるんだけどなぁ、、、(コードで直接編集してもダメ)
    • line-before.png

対応方法

  • LineRendererにMaterialを追加してMaterial側で色を変更する
    • line-after.png
    • 昔は、「色=マテリアル」でくっつけてたから変わってたw

補足事項

  • LineRendererのパラメータをよく見ると「Materials」の項目が、、、

まとめ

  • これ、しばらくたったらまた忘れる。。。
5
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?