[C++] How to put a dynamic material instance on a landscape?
I'm trying to make a grid system on a landscape, and I have only one problem, updating my landscape material to highlight the correct case. It seems like my landscape doesn't take my dynamic material instance, here is my dynamic material instance code:
The log is displayed and display the right case coordinates.
So, what's wrong? How can I set a dynamic material instance on a landscape in a way that works?
Thank you for your time.
asked Jan 03 '16 at 02:50 PM in C++ Programming
Well, dynamic material instance on landscape doesn't seem to work. So I tried with a material parameter collection, and that's working really well. Here's some code to get a Material parameter collection from content browser and set some values at runtime:
To get from content browser the asset and store it in private field:
To change the value:
answered Jan 11 '16 at 09:44 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here