Skip to content

Extension Best Practices #70

@tristanbob

Description

@tristanbob

➡️ See the checklist of the best practices here ⬅️


Original discussion:

I have realized that the scene variables used in my extension are not locally scoped inside the extension. Instead, they share the same space that all scene variables share. This means that some of my simple names for scene variables could collide with something that the GDevelop user has assigned.

  1. Can you provide guidance on how variables should be named when used inside an extension? Someone gave an example that looked like this:
    "_MyExtensionMyVariableName"

  2. Is there any way to delete temporary scene variables that were used in an extension? (These should still follow the naming convention to prevent accidental overwriting and deletion)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions