godotengine / godotengine/godot-docs

Add information how to add custom resources to the New Resources menu and an exported field using C#

Open
#8,187 0 comments 1 reaction 0 assignees View on GitHub
area:manual bug topic:dotnet
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:** 4.1 .NET

**Issue description:** Custom resources can be added in the New Resources menu by applying `[GlobalClass]` to it. In addition, to use those classes you can add `[Export(PropertyHint.ResourceType, nameof(YourCustomResource))]` above an exported field to let the editor know which classes to use. This information is currently missing from the docs.

**URL to the documentation page:** https://docs.godotengine.org/en/stable/tutorials/scripting/resources.html#creating-your-own-resources

If you know how to fix the issue you are reporting please
consider opening a pull request. We provide a tutorial on
using git here: https://docs.godotengine.org/en/stable/community/contributing/pr_workflow.html,
writing documentation at https://docs.godotengine.org/en/stable/community/contributing/docs_writing_guidelines.html
and contributing to the class reference here: https://docs.godotengine.org/en/stable/community/contributing/updating_the_class_reference.html

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.