toc

content

TextureRect scales badly

TextureRect in Godot may scale badly due to:

  • The TextureRect using the default project setting for rendering/textures/canvas_textures/default_texture_filter, which may be set to a scaling mode you don't like.
  • A parent CanvasItem explicitly setting a scaling mode you don't like.

To fix this, you may need to:

  • Change the rendering/textures/canvas_textures/default_texture_filter to the desired texture filter.
  • Make sure all CanvasItem parents don't have an explicitly set texture filter, if you want the default texture filter.
  • Explicitly change or set the texture_filter value on the respective CanvasItem class (which node you do this to in the tree depends on whether or not each successive parent has inherit as its filter or not).

History

meta

tags: godot

created: modified:

commit: d9f091ad