# Get material of overlapping actor,

**URL:** <https://forums.unrealengine.com/t/get-material-of-overlapping-actor/1906892>\
**Category:** Blueprint\
**Tags:** overlap-actors, unreal-engine, question, Blueprint\
**Created:** [June 17, 2024, 8:57pm UTC](https://forums.unrealengine.com/t/get-material-of-overlapping-actor/1906892 "2024-06-17T20:57:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmexyCelery](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/smexycelery/32/949858_2.png) [@SmexyCelery](https://forums.unrealengine.com/u/SmexyCelery)\
**Post date:** [June 17, 2024, 8:57pm UTC](https://forums.unrealengine.com/t/get-material-of-overlapping-actor/1906892/1 "2024-06-17T20:57:12Z")

</div>

I currently have a blueprint where players can put a physics object on a pressure plate that triggers a door to open. I want to add a check in between to make sure the physics object and pressure plate have matching materials before opening the door.

 ![SoFar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/0/6d0a0109d0dc1b2ca5f92419055c8e293e618082.png)  
Was thinking of something like this but haven’t found a way to check if the materials will match each other or not. Let me know if you need more details or anything.

---

<div class="post-metadata">

**Author:** ![teeoemm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teeoemm/32/619785_2.png) [@teeoemm](https://forums.unrealengine.com/u/teeoemm)\
**Post date:** [June 17, 2024, 9:21pm UTC](https://forums.unrealengine.com/t/get-material-of-overlapping-actor/1906892/2 "2024-06-17T21:21:29Z")

</div>

This would likely be easier using tagging both objects and checking that those match.

Better still would be to give the actors an ID and using an interface to check if they match.

Materials might be a bad choice because, if you ever want to use a dynamic material instance, to say light up the boxes or give some sort of status feedback, then those dynamic materials will never match.

---

<div class="post-metadata">

**Author:** ![SmexyCelery](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/smexycelery/32/949858_2.png) [@SmexyCelery](https://forums.unrealengine.com/u/SmexyCelery)\
**Post date:** [June 17, 2024, 11:19pm UTC](https://forums.unrealengine.com/t/get-material-of-overlapping-actor/1906892/3 "2024-06-17T23:19:55Z")

</div>

I see that might put me in a pickle for how I’m implementing my idea. Trying to have it setup to where you can change the material of an object to match the plate to interact with. I’ll look into tagging to see if it can help out, or changing the object itself to match instead.

---

<div class="post-metadata">

**Author:** ![SmexyCelery](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/smexycelery/32/949858_2.png) [@SmexyCelery](https://forums.unrealengine.com/u/SmexyCelery)\
**Post date:** [June 19, 2024, 10:28pm UTC](https://forums.unrealengine.com/t/get-material-of-overlapping-actor/1906892/4 "2024-06-19T22:28:22Z")

</div>

Thanks for the tip. Wasn’t able to get understand tags, but just had the objects check to see they matched a value I set based on what material they were. Thank you mate

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 19, 2024, 10:29pm UTC](https://forums.unrealengine.com/t/get-material-of-overlapping-actor/1906892/5 "2024-07-19T22:29:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
