Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Is there a way to cast to Landscape Grass Types in blueprints?

As the title says, I am trying to cast to Landscape Grass Types to attempt to disable and re-enable the grass based on actor overlaps. Is this even possible?

Product Version: UE 4.20
more ▼

asked Apr 29 '19 at 07:34 PM in Blueprint Scripting

avatar image

IEI Game Studios
241 2 5 5

avatar image Dasius1 May 29 '19 at 07:22 PM

Would like to know if this possible as well.

avatar image IEI Game Studios Jun 01 '19 at 02:38 AM

Hey, so I figured out a way to do this, However you cant use the Landscape Material to Procedurally Generate the Foliage because it doesn't make Instances of the Foliage like the Foliage Painter does. So you have to either hand paint the foliage or use Foliage Procedurally Generated Actors in the world and use the Landscape Grass to apply foliage to certain areas based on the Landscape Layers. Then in your blueprint you have to use a Multi-box trace (or any ray trace node) to trace for anything "overlapping" the extents on your multi-box trace nodes. If you get a hit cast the "Hit component" against FoliageInstancedStaticMeshComponent Node and if it is successful then Delete the Instance or store it and save it for later or whatever you want to do with it. alt text

screenshot-4.png (914.5 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question