godotengine / godotengine/godot-docs

v3.2 Plugins - GDNative c++ example misprint/typo/enhancement

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

Description

In the Plugins -> GDNative c++ example guide, in the "Creating a simple plugin" section, after telling you to create a .cpp implementation of the methods described in the .h file, the guide warns the reader about the need to use `owner->set_position` to call that method, even if I select the "Nativescript 1.1" tab in the code section above.

Specific text:

> "What stands out is calling owner->set_position to call one of the build in methods of our Sprite. This is because our class is a container class; owner points to the actual Sprite node our script relates to. In the upcoming NativeScript 1.1, set_position can be called directly on our class."

This could be potentially misleading.
Don't know if this issue could be a misprint/typo fix or just an enhancement.

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.