Instanced Foliage Grid Size is grayed out in World Settings

Hello,

Does anyone know why the Instanced Foliage Grid Size is grayed out on World Settings? I’m trying to set a custom grid size for foliage so it creates smaller instanced foliage actor components making for better culling potential.

image

Cheers!

May be part of the broken HLOD generation stuff…

Also, in 4, the foliage automatically generates clumps that perform better with occlusion than hism grids do.

I sort of hope they don’t do away with one of the few things in engine that worked to save some performance just to enable this settings and hlod…

Ps: is it not tied to the landscape size? The current value I mean.
Check the size of a single landscape component, and the overall.

I just found out the official way of changing this is kinda unintuitive… You need to go to the Project Settings (or Editor Preferences in UE 5.3) but the new value only goes for levels created after that. Changing the values for already existing levels require using a command prompt commandlet, as I understood:

https://docs.unrealengine.com/5.2/en-US/foliage-mode-in-unreal-engine/

Hey did you ever find a way to do this? I’ve adjusted it in the editor preferences but it doesn’t do anything when I create a new map. I’m also trying to use the official commandlet as well to change existing maps foliage actor grid size but I can’t get that to work either. Any help would be greatly appreciated.

Cheers

The value for foliage grid size isn’t visible like the normal grid size that can be seen when you open the map and look in the World Settings panel. But when you place your foliage on the new map, you can see that each Instanced Foliage Actor is now only filling a grid square of the size you defined in the Project Settings (or Editor Preferences). You can measure the size using middle mouse button from the Top View.

I just tested this in UE 5.4, using the ‘Empty Open World’ option when creating a map, and it still works, although now the Instance Foliage Grid Size is set in the Editor Preferences and not in Project Settings anymore.

Hey @PeaceSells thanks for the reply

Im using 5.3.2

I’ve got my foliage grid size set to 3200 in the editor preferences but when I create new maps the foliage actor grid size is still 25600. I measured it from the top view like you said.

Wonder if its just broken in this version or if I need to alter an .ini file somewhere instead.

I’ve restarted the engine many times and the instanced foliage grid size is saying 3200 but the actual foliage actor grid sizes remain at the default of 25600 when I create new maps to test it out. Even started a new project to test in and still same issue. The commandlet to change existing maps also doesn’t want to cooperate with me sadly.

Are you measuring the grid or the instanced foliage actor? You should measure the actor, not the grid…

Those pics were taken in UE 5.3.2 after setting my foliage grid to 3200 and creating a new map:


I measured the actor, identical to how you just demonstrated.

Im thinking maybe somethings corrupted with my engine then? because im currently also having another strange issue that I shouldn’t be that im working through in another thread.

Thanks for your help so far.

Also try installing 5.2 or 5.4 to test. In the Epic Launcher there’s also an option for verifying the engine for corruption or something like that…

Yeh i tried it in 5.4 and still the exact same issue. Haven’t tried 5.2 yet but I assume there must be something else going on for it to be across multiple engines. If I figure it out I’ll update this thread.

Thanks for your help

I had the impression that when I change the grid on one project it gets changed on the other projects too and also on other versions of the engine too, but I can’t say for sure now… So this might not be an issue on your part.

Would you have any idea where I could find the “InstancedFoliageGridSize” setting in the ini files? I have found it in the DefaultEngine.ini file but changing the value there doesn’t have any effect in the editor, and changing it in the editor doesn’t have any effect in the .ini file so i assume there must be somewhere else this is handled now since being moved from project settings to editor preferances?

The problem persists across engine versions and projects so not really sure where to look

I don’t know where it is in the ini files.

I guess my last ditch attempt would be to uninstall and reinstall all engine versions…