Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Mordi |
I’m trying to add files to a tree inside my editor plugin. So far, it’s working well. I can retrieve a list of all files in the res:// folder, and add them to the tree, just like the native FileSystem does.
I’d like to filter out my tree, so that it only adds my custom AudioEvent resource. I have access to the full path of all my files, but I don’t know how to convert those into something where I can find out what type of resource each file is, since they all have the .tres extension.
Does anyone know how I can achieve this?