How to delete texture in TextureRect Node ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Pastuh

How to delete texture in TextureRect Node ?

I tried this …

$TextureButton/TextureRect.get_texture().free()

Debug :
Attempted to free a reference

:bust_in_silhouette: Reply From: volzhs
$TextureButton/TextureRect.texture = null
1 Like