How to Fix “error CS0029: Cannot implicitly convert type” in Unity
CS0029 means the value you assign is a different type from the variable receiving it. How to read the two type names, with the Unity cases and fixes.
Fix guides for specific engine errors, plus articles on QA and bug tracking for game developers.
Written by devs, for devs.Try a different search term or clear the filters.
CS0029 means the value you assign is a different type from the variable receiving it. How to read the two type names, with the Unity cases and fixes.
A List was indexed below 0 or at or past its Count. How to read the stack trace to the line, tell the causes apart and fix each one in Unity C#.
Godot 4 raises Cannot infer the type of variable when := gets a value with no static type. Where untyped values come from and the fix for each case.
Godot prints Attempt to disconnect a nonexistent connection when that signal and Callable pair is not connected. Seven causes and the fix for each.
C2065 in Unreal C++ means a name was used before the compiler saw it declared. Which header to include, why unity builds hide it, and the editor-only case.
ReferenceError: X is not defined means the name does not exist when the line runs. Causes in web games: script order, failed loads, modules, workers.
UnboundLocalError means a function read a local variable before assigning it. The five causes in Python game code, with broken and fixed Pygame examples.
vulkan-1.dll was not found means no Vulkan driver is installed. Read each vkCreateInstance error code, debug the loader, and ship a D3D or OpenGL fallback.
UnsatisfiedLinkError means a native .so library failed to load. How to read each dlopen failed message, check the APK's ABIs and fix the cause.
A game test plan template you can copy: ten sections, a filled-in example for a small Steam game, a one-page solo version and the mistakes to avoid.
CS1503 means a value you passed to a method is the wrong type for that parameter. How to read Argument N and the two types, with the Unity cases and fixes.
A method refused a null argument, and the Parameter name line says which one. A table of the names seen in Unity (source, key, s, path, shader) with fixes.
Godot 4 allows one indentation character per script. What the three tab and space errors mean, how to convert a file and the settings that stop it returning.
Godot 4 prints Lambda capture at index 0 was freed when a lambda runs after a node it captured was freed. What the index means and three ways to fix it.
C2027 in Unreal C++ means a type is only forward declared where you use it. Which header to include, what needs the full type, and fixing circular includes.
Unexpected token '<' means the server sent an HTML page where your game expected JavaScript or JSON. How to confirm it in the Network tab and fix it.
This TypeError means you used [] on None. Find which value is None from the traceback and fix the usual sources: missing return, in-place methods, lookups.
dyld: Library not loaded: @rpath means a dylib is missing from your Mac app bundle. Fix the install name and LC_RPATH, re-sign, and test on a clean Mac.
java.lang.OutOfMemoryError means the Java heap hit its per-app limit or a thread could not start. How to read the message and fix the cause in a game.
The bug life cycle for game teams: every status, who owns it, the allowed transitions, the exits without a fix, and a three-status version for solo devs.
CS0122 means the member exists but its access modifier hides it from your script. What private, protected and internal allow in Unity, and the fixes.
JsonUtility.FromJson throws when the text is not a JSON object it can read. What each parse error means, with fixes for saves, web responses and arrays.
Godot warns when an int is divided by an int, because 5 / 2 is 2. When the warning is a real bug, how to get a float result and how to silence it on purpose.
This Godot 4 error means the value before the dot is null. How to tell which value from the line, why it is null, and fixes for each cause with code.