I did a tutorial a little while ago, and the author used the foliage brush to place a handful of objects randomly on the floor. While it works fine with static meshes, I would like to use it to place blueprints. Is there a way to do this? Dragging the blueprint to the foliage window does nothing.
It helped me setup something, but not quite what I wanted. I still canāt add my BPs to the foliage window, but thatās alright, Iāll try something else for now. =)
adding bp to foliage is a bad idea.
you should use a replacement system or something similar. http://mosthostla.com/gamedev/dynofoliage
for instance (even if im biased since I made it ;P)
Actor Foliage already exists in 4.25 =)
[HR][/HR]
If youāre tired placing BPs by dragging them from the content browser or duplicating them in the level and then position them by hand, then this feature comes in quite handy.
Create an Actor Foliage asset and then in its settings, set the āActor Classā to your pot BP. Drag the actor foliage asset into the foliage window.
Ohhhhā¦ Iāll go test it out, thank you very much =)
Edit: Got it working, thank you all. For anyone else looking at this, you have to create a landscape as well or the brush wont show, I had to for mine.
Iām not sure what to say, I know very little when it comes to UE, as you can see with all the questions I ask haha. I clicked the foliage tool and added some meshes, regular ones and nothing showed up, I tried with the actor foliage asset that Arkiras suggested and again nothing, only when I created a landscape did it start working.
My new issues is that, I can only paint foliage (my bp and other meshes) on the ground of the landscape, problem for another thread.
Personally I just tested it in the default first person template level with no landscape, so it definitely works. No idea what the problem could be in your case.
Re the other issue. The ui changed so I donāt know where its up, but you have a set of checkbooks that define what the brush places meshes on.
if you need them on static meshes you can toggle the option on.
Yes, the filter, I moussed over it and it says āFilters where foliage instances can be placedā. Landscape is the only filter it works on. I think there is something broken with my project or I clicked something, Iām not sure.
I want to say thank you, to both of you for sticking around and helping me with my project, thank you! =)
Edit: When I choose a filter type other then landscape, the brush disappears like before. I guess that was the reason I had to make a landscape before it started to work. I wonder why itās stuck to the landscape for meā¦
Separately, foliage that turns into instanced static meshes (animated only by material shaders) are quite efficient for the CPU and renderer. If you place that many blueprint actors, then you will cause much higher load on the CPU and renderer.
Thanks, jwatte. My initial intent was to use this in a cave, or other instanced area and scatter 50-100 of the pots around the level, something that can be destroyed.
Iāll remember it has a performance impact. I also have to check out MostHost LAās program too.
The only performance cost should be coming from whatever you are doing inside the blueprint. Static mesh components inside blueprints that can be instanced (meaning they share the same mesh and material) will automatically get instanced as of 4.22.
Iām currently adding 6 different pots to an array, then getting the location of the mesh, and finally randomizing one of the 6 pots to replace the mesh and populate the world.
The BP runs once per pot, just to give some randomness, performance be damned for now haha.