godotengine / godotengine/godot-docs

Gdnative cpp example: variable visibility

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

Description

I think I've found a little error in [gdnative-cpp-example.rst](https://github.com/godotengine/godot-docs/blob/master/tutorials/plugins/gdnative/gdnative-cpp-example.rst#adding-properties). When showing how to create a new property without getter and setter, its visibility is set to private
`
...
private:
float time_passed;
float amplitude;
...
`
but this prevent the Godot interface from accessing the variable itself (which then is not visible in the inspector).

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.