Unity-初心者ユニティの使い方メモ【UTMEMO】ブログ版

新しくライターさんが参加しました。Unityの使い方。アプリ、ゲームを作る時の開発作業ログ等。もしや、誰かのお役に立てたなら幸いです。

よくある「警告」エラーと対策まとめ

遭遇したエラー/警告を自分ようにまとめています。

 

 

■ 軽い目のエラー

Tiled GPU perf. warning: RenderTexture color surface (335x595) was not cleared/discarded. See TiledGPUPerformanceWarning.ColorSurface label in Profiler for info

nakamura001.hatenablog.com

 

 

■ ずっと謎だった不思議な警告/エラー

There are 2 audio listeners in the scene. Please ensure there is always exactly one audio listener in the scene.

放置していたけど、解消方法がわかりました

qiita.com

 

2つあるカメラのAudio Listenerをどっちか片方消せばOKのようです。

 

 

■ CommandInvokationFailure: Unable to retrieve device properties. エラー

CommandInvokationFailure: Unable to retrieve device properties. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.

とかいうエラー

同じエントリーがあったので

参考にさせていただきました

qiita.com

解決せず・・・

 

と思ったら、

ただのアンドロイド端末側のUSBアクセス許可をしていなかった初歩的ミスだった

 

 

GUI Window tried to begin rendering while something else had not finished rendering! Either you have a recursive OnGUI rendering, or the previous OnGUI did not clean up properly.

GUIウィンドウがレンダリングを開始しようとしましたが、他の何かがレンダリングを完了していませんでした!再帰的なOnGUIレンダリングがあるか、以前のOnGUIが適切にクリーンアップされませんでした。

http://whaison.jugem.jp/?day=20160930

 

 ■ NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Graphs.Edge.WakeUp () (at /Users/builduser/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Edge.cs:114)

→ 再起動でなおるらしい??

qiita.com

 

■ graphics apis とかいう謎のエラー

The connected device does not support any of the selected Graphics APIs.
Please select OpenGL ES 2.0 under Player Settings or connect a device that supports the selected API settings.

 

【翻訳】
接続された機器は選択​​されたグラフィックAPIのいずれもサポートしていません。
[プレーヤーの設定]で[OpenGL ES 2.0]を選択するか、選択したAPI設定をサポートするデバイスを接続してください。

 

graphics apiがサポートされていない?

ってことなのだろうか。

 

other settings のauto graphics APIをチェック入れると治った??

 

■ InvalidOperationExceptionとは

Unityをバージョンアップしたら

InvalidOperationExceptionというエラーがエディタじょうでずっとでている。

 

InvalidOperationExceptionは直訳すると無効な操作例外、つまり例外エラーみたい。

 

もうちょっと詳しく調べる必要が・・・

でも、普通に動作している。

 

なんだかなぁ

バージョンアップするべきじゃなかった。