Unityでよく起こるエラー(Exception)とその説明
よく起こるエラー(Exception)
NullReferenceException: Object reference not set to an instance of an object
オブジェクトへの参照が設定されていないことを示します。
MissingReferenceException: The object of type 'TypeName' has been destroyed but you are still trying to access it
削除されたオブジェクトにアクセスしようとしています。
IndexOutOfRangeException: Array index is out of range
配列の範囲外のインデックスにアクセスしようとしています。
ArgumentException: Argument is out of range
引数が範囲外。
ArgumentNullException: Argument cannot be null
引数がnullであること。
InvalidOperationException: Operation is not valid due to the current state of the object
オブジェクトの現在の状態により、操作が無効。
NotImplementedException: The requested feature is not implemented
要求された機能が実装されていません。
MissingComponentException: There is no 'ComponentType' attached to the "GameObject" game object
ゲームオブジェクトに「ComponentType」コンポーネントが含まれていません。
TypeLoadException: Could not load type 'TypeName'
指定されたタイプがロードできない。
InvalidCastException: Cannot cast from source type to destination type
ソースタイプから目的のタイプへのキャストが失敗した。
MissingMethodException: Method not found
メソッドが見つからない。
MissingManifestResourceException: Could not find any resources appropriate for the specified culture or its parents
指定された文化またはその親に適切なリソースが見つからない。
KeyNotFoundException: The given key was not present in the dictionary
指定されたキーが存在しない。
AbnormalTerminationException: The program terminated abnormally
プログラムが異常終了した。
AmbiguousMatchException: Ambiguous match found.
曖昧な一致が見つかった。
NotSupportedException: Specified method is not supported.
指定されたメソッドはサポートされていない。
FileNotFoundException: Could not find file.
ファイルが見つからない。
OutOfMemoryException: Not enough memory available to complete this operation.
この操作を完了するのに十分なメモリが利用可能でない。
IOException: An I/O error occurred.
I/Oエラーが発生した。
SecurityException: Requested operation is not allowed, possibly due to security restrictions.
要求された操作は許可されていない。
UnauthorizedAccessException: Attempt to access a restricted resource, such as a file or directory, failed.
ファイルやディレクトリなどの制限されたリソースへのアクセスが失敗した。
DivideByZeroException: Attempted to divide by zero.
0で除算しようとした。
OverflowException: Arithmetic operation resulted in an overflow.
算術操作がオーバーフローした。
FormatException: The format of the input string is invalid.
入力文字列の書式が不正。
ArgumentOutOfRangeException: Argument is out of range.
引数が範囲外である。
他にもUnityで起こるエラーはあるので、わかり次第追加しようと思います。
コメント
0 件のコメント :
コメントを投稿