Skip to content

Object does not dispatch NOTIFICATION_POSTINITIALIZE  #1269

Description

@Naros

Godot version

4.2

godot-cpp version

4.2

System information

Windows 11

Issue description

When a custom resource is defined, such as:

class MyResource : public Resource {
  GDCLASS(MyResource, Resource);
};

The _notification method is never dispatched with NOTIFICATION_POSTINITIALIZE like it is in Godot / GDScript.

Steps to reproduce

Create MyResource as outlined above using:

Ref<MyResource> r;
r.instantiate();

or using memnew

MyResource *r = memnew(MyResource);

In neither case is the NOTIFICATION_POSTINITIALIZE fired.

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis has been identified as a bugtopic:gdextensionThis relates to the new Godot 4 extension implementation

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions