Hey,
i try to add a script to a Prefab. This works, if i drag the prefab into the scene, the start() method gets called, the event is registered and triggered when i click the item.
However, when i instantiate() the prefab, the start method is called, but no event will ever fire.
As the event itself is working when the node is dragged into the scene, i dont understand whats wrong.
Any help is appreciated, thanks
EDIT: So it seems to be tied to the way i instantiate it. i tried now also via createNode(), the event never works on programmatically instantiated, and always on “drag and dropped”-into-the-scene prefabs. if anyone can tell me the difference between dragging a prefab into the scene and calling instantiate(), i think that might alredy help