Announcement

Collapse
No announcement yet.

access foliage instances during runtime?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Thanks ixicalibur, I will check out his blueprints.

    Leave a comment:


  • replied
    Aaron's system does exactly this, i use it to change my grass color and scale throughout the year, it works with the LandscapeGrassOutput
    https://forums.unrealengine.com/show...Sprite-foliage

    Leave a comment:


  • replied
    I am using the LandscapeGrassOutput node inside my material, in reality what I would like to do is occasionally grab the grass instances, update colour and scale based on the age of the grass.

    Leave a comment:


  • replied
    I am a bit confused with what you are trying to achieve. How do you place the grass in the world?

    Leave a comment:


  • replied
    Originally posted by DjSt3rios View Post
    on "Get Child Component", change the index from 0 to 1, or 2, what I did was to read all of the children to find the correct IDs
    This only works for painted foliage, but I am also trying to get it to work with the material landscape grass node without success. The type seems to be "FoliageType_InstancedStaticMesh, but since it is not considered an actor class, it can't be selected.

    Leave a comment:


  • replied
    Originally posted by OverHertz View Post
    After some fiddling, everything works, but still no grass, any suggestions on getting grass foliage

    on "Get Child Component", change the index from 0 to 1, or 2, what I did was to read all of the children to find the correct IDs

    Leave a comment:


  • replied
    After some fiddling, everything works, but still no grass, any suggestions on getting grass foliage

    Leave a comment:


  • replied
    Thanks DjSt3rios, but it seems to always fail.

    Edit, sorry I see it is working for regular foliage but not grass, thanks I will have a fiddle around with this much appreciated for quick response and help.
    Last edited by OverHertz; 11-07-2016, 10:45 AM.

    Leave a comment:


  • replied
    Check this: http://blueprintue.com/blueprint/347jlkf6/
    on Get all actors of class, select "Instanced Foliage Actor"

    Leave a comment:


  • replied
    This is possible if you use something like a trace and hit the foliage actor you can get the actor and the hit foliage index then you get the instance from the actor with that index and you can edit that instances variables.

    Leave a comment:


  • started a topic access foliage instances during runtime?

    access foliage instances during runtime?

    Is it possible to access instances of foliage and grass during runtime? An example usage could be changing scale etc
    Last edited by OverHertz; 11-07-2016, 08:19 AM.
Working...
X