how to change the material of the object using c++ without blueprint in vr
i'm make an concept vr walkthrough,toggle light on/off and change the material of the object one or more button on present on the screen.this button like photoscrolling(right and left arrow widget(next button)) makes to change the material of an object.please help... initially which object should changed that will glow on the screen. please help me.. quick reply.... i need..
asked Aug 13 '18 at 06:22 AM in C++ Programming
Use a material instance dynamic. You can create one at runtime by calling ->CreateMaterialInstanceDynamic on your mesh component. The resulting material instance will be automatically set in your mesh. Then you can set the value for the parameter nodes that you put in your material graph.
answered Aug 13 '18 at 09:46 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here