Look rotation viewing vector is zeroというログが出続ける

次のようなログが出続けるバグがUnity 5.5.1.f1 Personalで発生しました。

調べてみると原因は5.5.0f3の時からあるバグのようでした。

私の環境だと、以下の条件を満たすと発生するようです。

  1. シーンビューが2Dモードになっている
  2. Transform ToolsがRectTransform用になっている
  3. CanvasにRectTransformのwidthかheightが0のゲームオブジェクトがあり、それに子がある
  4. 上記の子のゲームオブジェクトを選択している

非常にまれな条件で発生するように見えますが、UIを作っていると発生する可能性があります。

問題としてはログが大量に出ることによりFPSが極端に低下しゲームが動かなくなってしまいます。
暫定的対処として、とりあえずTransform Tools(Editorの左上にある手とか移動とか回転のツールのこと)をRectTransform用のものにしなければ良いと思います。もしくは選択しているものを変えると良いです。

コメント

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny

タイトルとURLをコピーしました