# Change Material of a mesh with mouse click event in runtime with blueprint

**URL:** <https://forums.unrealengine.com/t/change-material-of-a-mesh-with-mouse-click-event-in-runtime-with-blueprint/310217>\
**Category:** Rendering\
**Tags:** unreal-engine, mouse-click, Blueprint, question\
**Created:** [March 9, 2015, 11:28pm UTC](https://forums.unrealengine.com/t/change-material-of-a-mesh-with-mouse-click-event-in-runtime-with-blueprint/310217 "2015-03-09T23:28:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![MarcAndreG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcAndreG](https://forums.unrealengine.com/u/MarcAndreG)\
**Post date:** [March 10, 2015, 2:05am UTC](https://forums.unrealengine.com/t/change-material-of-a-mesh-with-mouse-click-event-in-runtime-with-blueprint/310217/6 "2015-03-10T02:05:39Z")

</div>

If you’re not sure how to add variable to a blueprint, I think the first step would be to go watch a few tutorial to get the hang of it.

If you’ve never touched UE4 / blueprints, the Unreal has great tutorial series too that I’d recommend watching

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Here’s one made by someone(aka not unreal) that seems to teach how to handle mouse click and touch events. It’s probably with a previous version of the engine but it still will get you some insight.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/c/5cc734bb4a6ee26f42000d8ce4ca6b70090bb61c.jpeg "UE4 Blueprint Mouse Click and Touch Events | UE4 Blueprint Tutorial by Devin Sherry") ](https://www.youtube.com/watch?v=eddauM-nP4U)

Cheers,

---

_[View the full topic](https://forums.unrealengine.com/t/change-material-of-a-mesh-with-mouse-click-event-in-runtime-with-blueprint/310217)._
