Skip to content

c++ class runs in editor / gets treated like a @tool #13

Description

@Lcbx

Godot c++ classes are treated as if they had the @tool annotation.
If you want to disable _process in the editor, add this to the ready function :

if (Engine::get_singleton()->is_editor_hint())
    set_process_mode(Node::ProcessMode::PROCESS_MODE_DISABLED);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions