[et_pb_section fb_built=”1″ _builder_version=”3.19.4″][et_pb_row _builder_version=”3.19.4″][et_pb_column type=”4_4″ _builder_version=”3.19.4″ parallax=”off” parallax_method=”on”][et_pb_post_title meta=”off” featured_image=”off” _builder_version=”3.19.4″ title_font=”|700|||||||” title_text_align=”center” title_font_size=”31px”][/et_pb_post_title][et_pb_video src=”https://youtu.be/vz39XBO5fDQ” src_webm=”https://youtu.be/vz39XBO5fDQ” _builder_version=”3.19.4″][/et_pb_video][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.19.4″][et_pb_column type=”4_4″ _builder_version=”3.19.4″ parallax=”off” parallax_method=”on”][et_pb_text _builder_version=”3.19.4″]How to Change a Texture in Code
First, you need a node with the texture that you want to change. Next, you need to have something to activate the code like a button. For this example , we will use a button.
First, go to the button. Make a press signal. Make a script. The code would be the texture node.
Texturerect.texture = resourceloader.load
The path to the texture is res://0.png.
Change the path based on your file name and location of your file.[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]