godotengine / godotengine/godot-docs

EditorExportPlugin._supports_platform() - documentation doesn't explain how it's used

Open
#11,104 3 comments 0 reactions 0 assignees View on GitHub
area:class reference
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:**
4.4

**Issue description:**
I'm making an addon with an export plugin that is only relevant on one platform. I saw there's a `_supports_platform` function on `EditorExportPlugin`, but I can't find any examples of how that function is used - I kinda expected if that function returns false then the export plugin would be disabled and no other functions called on it, but that doesn't seem to be the case. Searching the godot source code, I couldn't see anywhere that function is actually called from.

I suggest adding documentation for this function to explain when it's used and when you should override it.

**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/stable/classes/class_editorexportplugin.html#class-editorexportplugin-private-method-supports-platform

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.