Skip to content

Passing per instance Material data from a Processor to Instanced Static Meshes. #35

@PreyK

Description

@PreyK

Hello :)
In epic's video overview of Mass, there's a mention of the possibility to pass custom data to the entity's material.
I'm currently using my own homebrew ECS for my farming game where a lot of stuff needs to grow at once, I'm using a HISM with per-instance material data that controls the growth of the plants.
However, I'd love to just use mass instead, it has better performance than mine and I wouldn't have to maintain my own system.

On the article with the video at the bottom of the page, there's a part about it
It took me some tries to be able to send the Custom Data to the material from a Processor but in the end it was just a couple of lines of code.
But no sample or any further explanation.

Does anyone have any ideas or insight on how to do this?
I'd love to contribute back a demo of this if I manage to get it working :)
Thanks for this repo btw, it was already a huge help.
And my apologies if it's off, haven't found anywhere else I could ask about this, hope it's okay but feel free to delete it if it isn't

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions