Skip to main content
Share Your Experience: Take the 2024 Developer Survey
18 votes
Accepted

How to report bugs found on procedurally generated levels?

It can also be very useful when your map generation algorithm is deterministic and repeatable based on an initial seed value. So when you enter the same seed value, you get the same map. This might be ...
Philipp's user avatar
  • 120k
17 votes
Accepted

NullReferenceException in Unity

Value type vs Reference type In many programming languages, variables have what is called a "data type". The two primary data types are value types (int, float, bool, char, struct, ...) and reference ...
Hellium's user avatar
  • 2,949
12 votes

A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details

Unity 2020+, in it's infinite wisdom, removed the ability for you to easily find the cause for this message. They provided a workaround, but as you will see following these steps, it is extremely ...
Dr-Bracket's user avatar
9 votes
Accepted

Mute sound in editor in Unity

In the Scene view, you will find a little toggle, near the 2D toggle, at the right of the lightning toggle (with a little sun ...
Hellium's user avatar
  • 2,949
5 votes

NullReferenceException in Unity

While we can easily just do a check to ensure we are not trying to access a null reference, this is not always a suitable solution. Many times, in Unity programming, our problem may derive from the ...
5 votes
Accepted

How to get the source code for a game?

Getting access to a game's sourcecode can be anything between trivial to impossible. Factors which decide that are: What technology was used to create the game? Decompiling executables to readable ...
Philipp's user avatar
  • 120k
5 votes

remaking Pong in Godot but the opponent AI cannot locate the ball's coordinate correctly

In the Godot editor, I made the silly mistake of placing the Sprite and CollsionShape nodes far away from the (0,0) origin point....
buzzbuzz20xx's user avatar
4 votes

Debugging an AMD GPU specific problem without an AMD GPU

No. You will need to find a computer with a matching GPU to test. You can sometimes get previous-generation graphic cards for cheap (that often still exhibit the same problem) if you ask small ...
Stephane Hockenhull's user avatar
4 votes
Accepted

Why does the Debug.DrawRay return these weird lines

You're drawing Rays, not Lines. This means that the second parameter is a direction not a point in space. https://docs.unity3d.com/ScriptReference/Debug.DrawRay.html Draws a line from ...
Draco18s no longer trusts SE's user avatar
4 votes
Accepted

Graphical mesh lags behind collision shape in BulletPhysics debug drawing

Note that this answer could be more complete, but, as I'm not a Bullet/physics engine guru, and that I'm not able to easily set up a project right now, I did not have the chance to try and debug the ...
Vaillancourt's user avatar
  • 16.3k
4 votes
Accepted

Are there conventions on what exactly to log in a game?

Logs serve a purpose, which is to help the developers detect, diagnose, isolate, and fix problems. When everything is running perfectly, you're probably not even reading the log. So the question of ...
DMGregory's user avatar
  • 135k
4 votes
Accepted

Disable all Player input in Godot 3?

Unfortunately, Godot 3 doesn't have an option to disable input globally. You can stop process functions like _input, ...
Bohdan's user avatar
  • 56
3 votes

How can I diagnose a Unity crash when running the game on a phone?

If you did not manage these in production, you'll probably have a really hard time doing it now. Best way to do these tests would be with a virtual android device, just get crash reports from the ...
John Hamilton's user avatar
3 votes

Unity get more than 2 lines of log height

In the more current versions of Unity it is now possible to change the number of lines shown for messages in the Console. You can do so from the context menu of the Console window under the menu item ...
Sisus's user avatar
  • 131
3 votes
Accepted

Unity get more than 2 lines of log height

Okay this is a simple workaround, which works but is still not the way I would like to have it. I think Unity lacks of configurability.... The trick here is, that Unity pushes everything of the log ...
TobiasW's user avatar
  • 987
3 votes
Accepted

How to fix an alarm event not triggering? [Gamemaker studio]

The alarm needs to be on the same object. When invoking alarm it's reading the local alarms, you would need to do ...
DH.'s user avatar
  • 551
3 votes
Accepted

is there any method to simply ignore some files in unity build?

You can rename the folders to one of the Unity's 'Special Folder Names' and they will be ignored: If you're on Windows, setting the folders to 'Hidden' would probably be the easiest as it likely won'...
JeffUK's user avatar
  • 220
3 votes
Accepted

Unity get component throwing NullReferenceException only in standalone build

I found the problem. It was all because of a stupid little workaround I was making. For some context, I was having problems with the new prefab workflow resetting scene references in all my levels. I ...
mr-matt's user avatar
  • 2,759
3 votes
Accepted

Set-up Android SDK path to make Android remote work in Unity

I had the same issue, I needed to manually specify the Android SDK Tools (second checkbox). My Path is: E:\Program Files\Unity\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer\SDK Once I changed ...
betrice mpalanzi's user avatar
3 votes
Accepted

Unity build does not launch and leaves no logs/errors

It took me 3 months on and off working on this issue, but I have figured it out. The issue lies with OpenVR/SteamVR. The head tracker of Steam has 2 camera's; head and eyes. This is where the ...
ploopploop's user avatar
3 votes
Accepted

How to inspect child nodes in IDE debugger?

On the debugger panel you will see the members variables of the current class/script and the local variables of the current function. The node you want is neither. Thus a solution is to store it in a ...
Theraot's user avatar
  • 27k
2 votes
Accepted

How can I Debug.Draw different shapes in unity?

You could use unity's Gizmos to draw cubes and spheres. Script Reference. ...
Iggy's user avatar
  • 640
2 votes
Accepted

How to generate a log file from a Unity WebGL build?

As a WebGL game, you're running it in a web page. You can edit the HTML to add an extra bit of JavaScript to intercept the browser's console log before your Unity game loads and tries to use it, as ...
DMGregory's user avatar
  • 135k
2 votes

Simple Java 2D Game : Player Doesn't Move

actionPerformed() is never called, so nothing is updated or repainted. You need to register it. To check that it's registered, simple add ...
Oliver Yasuna's user avatar
2 votes
Accepted

How to know if these profiler values are good or bad?

There are no definitive "bad" or "good" value, but in general fewer calls are better since you spend less time doing what you're doing (e.g. drawing to the screen). The only way to know if your ...
Charanor's user avatar
  • 7,860
2 votes
Accepted

Find an infinite loop in a very big project in Unity

There's a paid ($15) asset called Panic Button that can help you track this down. You import it into your project, then run. Once Unity locks up in an infinite loop, hit ...
DMGregory's user avatar
  • 135k
2 votes

Phantom objects in ray tracing

The issue was not testing that the intersection needs to happen between the object and the light position. i.e I was raytracing past the light. i.e the check: ...
Makogan's user avatar
  • 260
2 votes

How to get error line when debugging APK from Logcat

It looks like you’re using IL2CPP. If it’s possible, you might want to try targeting Mono instead, at least temporarily, which will do a better job of showing line numbers. Also, you can still run a ...
Ed Marty's user avatar
  • 5,229
2 votes
Accepted

Null Reference Exception error occurs when trying to override AndroidManifest file in unity?

While the NullReferenceException is technically a bug that Unity should protect against and present something nicer to the user, your manifest is not complete. The main thing it’s complaining about is ...
Ed Marty's user avatar
  • 5,229

Only top scored, non community-wiki answers of a minimum length are eligible