Don't classes inhereited from Object have ConstructionScript?

Hi

I’m using blueprints to create objects that I’ll use in my project, and I make them inherit from Object (since it’s nothing that will be seen), but it also happens with the ActorComponents. When I create a class, they don’t have ConstructionScript. Why ? Is there any way to add it ?

Thanks

I am assuming, you are talking about child blueprints. Objects (and their children) are not actors, and as such, will not have ConScript since they will not be placed in the gameworld. As for Actor blueprints, you should have ConScripts, even for children, if they do not, you can just open it up on the left side, where the rest of your functions are. Should be around Graph section.

I was talking about Object children blueprints. There is nothing as the constructor you’d use in any other object oriented language ?

I know you were, and so I made sure that you understood both. Construction Scripts are for Actor BPs because they are placed inside the world. Sadly they don’t really mention it in the official docs. But anyway, ConScripts are only used for Actors that are placed inside the world.

  • You can do this in C++, but that’s probably not what you’ll want to do.
  • If I have answered your question, please upvote and mark as answer/resolved.
  • Thanks and good luck!

Well I guess I’ll just add a custom ConstructionScript function I’ll call when I construct my objects. Thanks anyway.