TextureRect
scales badly
TextureRect in Godot may scale badly
due to:
- The
TextureRectusing the default project setting forrendering/textures/canvas_textures/default_texture_filter, which may be set to a scaling mode you don't like. - A parent
CanvasItemexplicitly setting a scaling mode you don't like.
To fix this, you may need to:
- Change the
rendering/textures/canvas_textures/default_texture_filterto the desired texture filter. - Make sure all
CanvasItemparents don't have an explicitly set texture filter, if you want the default texture filter. - Explicitly change or set the
texture_filtervalue on the respectiveCanvasItemclass (which node you do this to in the tree depends on whether or not each successive parent has inherit as its filter or not).