How to add a background image in Godot2D

In this tutorial, we will see how to add an image as the background in Godot2D. I am using Godot version 3.4.2 for this tutorial.

I am assuming you have a 2D scene setup already if not create a new 2D scene.

Click on node2D and add a TextureRect to your scene.

Scene items in hierarchy

Scale the boundaries to match the camera size.

Free Unity asset banner

Go to TextureRec properties in the inspector window.

Click on the Texture property and select new ImageTexture.

Inspector setting in Godot

Click on the image texture and load the image you want set as background.

That’s it. Your background is set. If you have any questions leave it in the comment box below.

Godot scene view

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.