When cooking assets for shipping I get an error Plants was missing the usage flag bUsedWithInstancedStaticMeshes. How can I fix this?

When cooking assets for deployment I get an error “Plants was missing the usage flag bUsedWithInstancedStaticMeshes”.
How can I fix this?
I don’t know where to start troubleshooting this problem. Is there any body who can help me?

1 Like

Hello Wamdon,

In order to diagnose your issue, I’ll need some more information from you. What platform are you packaging to, and which device are you planning to use? Could you provide the steps that you are using to package your game? Also, be sure to have a look at the packaging and cooking documentation to see if you can find information regarding the issue that you are having: Packaging and Cooking Games | Unreal Engine Documentation

Have a great day,

Sean Flint

Hi, thanks for the link Sean.
I am trying to package to Windows 64-bit, and I am planning to use it on a computer with Windows 10 64-bit.
The set up was done in packaging settings where I allocated the asset directories and then I went to windows>windows 64-bit within the packaging options.
It should probably mention that game loads fine, but the materials for the plants are missing. I have checked the asset directory includes these materials for the plants.
This is what it’s showing:

LogMaterial: 0.000174 seconds spent updating 1 materials, 1 interfaces, 0 instances, 0 with static permutations.
LogMaterial:Warning: Material /Game/KiteDemo/Environments/Trees/ScotsPine_01/ScotsPine_01_Fronds_Mat.ScotsPine_01_Fronds_Mat needed to have new flag set bUsedWithInstancedStaticMeshes !
LogMaterial: Missing cached shader map for material ScotsPine_01_Fronds_Mat, compiling.
MapCheck:Warning: Warning ScotsPine_01_Fronds_Mat Material /Game/KiteDemo/Environments/Trees/ScotsPine_01/ScotsPine_01_Fronds_Mat.ScotsPine_01_Fronds_Mat was missing the usage flag bUsedWithInstancedStaticMeshes. If the material asset is not re-saved, it may not render correctly when run outside the editor. Fix
LogMaterial: 0.000184 seconds spent updating 1 materials, 1 interfaces, 0 instances, 0 with static permutations.
LogMaterial:Warning: Material /Game/KiteDemo/Environments/Trees/ScotsPine_01/ScotsPine_01_Billboard_Mat.ScotsPine_01_Billboard_Mat needed to have new flag set bUsedWithInstancedStaticMeshes !
LogMaterial: Missing cached shader map for material ScotsPine_01_Billboard_Mat, compiling.
MapCheck:Warning: Warning ScotsPine_01_Billboard_Mat Material /Game/KiteDemo/Environments/Trees/ScotsPine_01/ScotsPine_01_Billboard_Mat.ScotsPine_01_Billboard_Mat was missing the usage flag bUsedWithInstancedStaticMeshes. If the material asset is not re-saved, it may not render correctly when run outside the editor. Fix

Thanks Alun

I have just found this and it sounds lilke the same problem…

Hello Wamdon,

Thank you for providing the additional information and the logs. We will be looking into the issue, and get back to you once we have a solution.

Have a great day,

Sean Flint

Thank you, Sean

Alun

Hi Wamdon -

If you open the Material you have assigned to the Plant asset and in the Material Attributes details panel under Usage check Used with Instanced Static Meshes true, then resave your material. This should clear up any packaging issues caused by this error. If you plants use multiple materials, each material will need to have the flag set as well.

Thank You

Eric Ketchum

2 Likes

Thank you this worked for me.

Alun