Add color to Sprite(2D)

Godot Version

4.6.3

Question

I’m using Godot 4.6.3 and trying to set a simple colored square on a Sprite2D. I used PlaceholderTexture2D as the texture, set its Size, but I can’t find the Color property that used to be there in earlier versions. I only see Size and Resource when clicking on the PlaceholderTexture2D resource in the Inspector.

I need to change the texture’s base color directly (not just Modulate) because Modulate multiplies with the default purple color, making everything look purple. I’d like to understand why the Color property is gone and if there’s a way to bring it back.

Is this an intentional change in 4.6.3? Is there a setting I need to enable? Or is PlaceholderTexture2D no longer intended to have a color?

Thanks for any clarification.

PlaceholderTexture2D never had a color property. You can use a GradientTexture2D with a Gradient with one color only instead.

Thank you, it got fixed.

Yep, using the Sprite2D’s Modulate property is usually the simplest solution. It’s also nice because you can change colors dynamically in code without needing separate textures for each color variation.

@Gim_Ziao you should mark @mrcdk 's post as the solution.

Thank you, But when I set the modulate property to gray, I had no idea what to do. It still appeared purple, just a darker shade. So I switched to a 2D gradient texture instead.

Ok. This is my first time to post a topic. thanks for remind. I just mark that answer as a solution.