How to drag and drop custom asset type into the viewport?

I made my custom asset type following the tutorial , but I can’t find documentation on how to drag and drop the new custom asset from the content browser into the viewport. What I’m trying to do is to spawn a custom actor when I drag the asset into the viewport, and before I dive directly into the source code for an example, I wanted to know if there is documentation available or any tips that you can give me.

has any Idea,thanks!!

You need to create a class from “UActorFactory”, then override “CanCreateActorFrom”, “PostSpawnActor”, and “PostCreateBlueprint”?

Then it should work perfectly.

You can just take the “TileMapActorFactory.h” as an example in your engine source code.

Cheer!

1 Like