I'm not familiar with the settings in Unity or Godot, but it might be similar to GMS2. In the GMS2 export settings under graphics there is an "interpolate colours between pixels" option which needs to be unchecked.