Dynamic Instance Material

Dynamic Instance Material

Link to Word Doc HERE



1.       First the object should have Instance Material on it.0
2.       Select the objects and hit the Edit Blue Print.
3.       The go viewport and add Collision box and size it so player can go over it.
 
4.       Go into the construction script.
Drag the Static Mesh Component and get.
5.       Drag from static and type Create Dynamic Material Instance.


6.       Right click on Return Value and promte to Variable and name it DynmaiMaterial.
7.       The right click over Box in the Components module and choose OnComponentBeginOverlap.
8.       Drag in variable DynmaiMaterial. Then drag off from it and type Set Vector Parameter Value. Connect all. Change the Value colour to Green.
9.       Test it…
HOMEWORK.

Make an elevator button. Bonus if use mouse click. 
Share on Google Plus

About knut

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment