Reliable way to delete all unused assets at once?

I have no 3D skills, so I’m limited to working with Marketplace content.
The problem is that, for convenience, I import the whole pack, but I end up using only a few assets.
As far as I know, Unreal doesn’t provide a native way to delete all unreferenced assets at once, but I know there are some plugins that supposedly do this. I wonder if anyone has used any of them and can share their experience.

Thanks in advance.

1 Like

There’s a trick you can do with migrate.

Make a new empty project of the same type as your current project, then just migrate your maps to the new project.

You will probably have to manually do some specific parts, like game mode, player etc, depending on how much customization you’ve done. But most assets will go with the maps.

Then you carry on with the new project ( after making very sure it’s all there :slight_smile: )

2 Likes

Is it actually a problem?

When you build/package your game for distribution, the cooker will attempt to not include assets that aren’t being used by each level.

As long as you’re not short-changing yourself on local available storage space, it might just not matter, especially if it’s a single person project and if you don’t use automated build servers, so you only copy the assets once, not once per build…

2 Likes

Yes it’s a real problem because I’m wasting a lot of storage in the working directory and also in the source control.

Thanks, feels messy TBH, but I’ll keep it in mind.

1 Like

Well, it’s not messy at all. I’ve certainly used it.

It leverages the power of the asset library reference system, to remove unwanted dross.

There are plugins that do something similar. The good ones basically do the same thing.

1 Like

It’s a one-time cost. Is this really, actually, causing you to develop your game slower?
If you’re an independent developer, and you actually want to ship anything real, speed of development should trump almost any other concern.

I previously used content browser filters to identify unused assets, so feel free to remove them.

Interesting, I’ll give it a try.

I don’t even know how to respond to this, you’re not making any sense.