A simple script for Godot 4 that allows a local file to be selected and read.
- Include the
web_file_select.gd
file anywhere in your Godot project. - Apply it to a
Node
- Set the file extension property
- Connect the
selected
signal, aPackedByteArray
containing the files data is passed as the first argument - Call
open()
on the new node