godotengine / godotengine/godot-cpp

Allow Custom File Extensions for Resources (RES_BASE_EXTENSION macro)

Open
#1,271 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
2.7k
Forks
809
Avg merge
1d 3h
Merged PRs (30d)
8

Description

### Godot version

4.x

### godot-cpp version

master

### System information

Windows 10 i7-6800K

### Issue description

I am currently porting my terrain system for godot 4 from module to extension and visually having custom resource names inside the editor and the file system without having to write a custom ResourceFormatLoader/Saver helps a lot.

![Landscape Terrain Module Editor](https://github.com/godotengine/godot-cpp/assets/36895302/f190881b-6dfd-4cac-9dd8-b3b34849d7df)

Adding custom file extensions to a resource is not much of an important feature, but it is very useful one to avoid the clutter of .res or .tres names

### Steps to reproduce

Create a Custom resource class. There is no method or macro available to set the resource save extension

### Minimal reproduction project

not neccesary

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.