# Must I check for an implemented interface on an object when executing a function by message?

**URL:** <https://forums.unrealengine.com/t/must-i-check-for-an-implemented-interface-on-an-object-when-executing-a-function-by-message/2273273>\
**Category:** Blueprint\
**Tags:** interface, unreal-engine, question, Blueprint\
**Created:** [January 12, 2025, 4:50pm UTC](https://forums.unrealengine.com/t/must-i-check-for-an-implemented-interface-on-an-object-when-executing-a-function-by-message/2273273 "2025-01-12T16:50:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maladrum](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maladrum/32/1013148_2.png) [@Maladrum](https://forums.unrealengine.com/u/Maladrum)\
**Post date:** [January 12, 2025, 4:50pm UTC](https://forums.unrealengine.com/t/must-i-check-for-an-implemented-interface-on-an-object-when-executing-a-function-by-message/2273273/1 "2025-01-12T16:50:17Z")

</div>

I’ve been developing with Unreal for a long time, and one feature I enjoy using is Blueprint Interfaces. However, I ran into a curiosity I can’t find an answer for.

I’m wondering if, before telling an object to call an interface function on itself, whether or not I absolutely _must_ check whether or not it has that interface. Now, I know my short answer: _no_. At least, it appears that when I do not check first and still call the function, I get no errors; the object in question simply doesn’t execute anything, because it does not implement the interface in question. But because I have simply always done this practice, I’m wondering if it’s really a decent “best practice” that I’ve brainwashed myself into tediously doing, or if I’m wasting my time.

Is there any trouble in the backend, or any trouble that I could encounter down the line, from abandoning these constant conditional checks?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [January 12, 2025, 4:53pm UTC](https://forums.unrealengine.com/t/must-i-check-for-an-implemented-interface-on-an-object-when-executing-a-function-by-message/2273273/2 "2025-01-12T16:53:42Z")

</div>

If the interface isn’t implemented then it’s basically ignored. You would want to check if the interface is there, if it was to drive some other external logic.

---

<div class="post-metadata">

**Author:** ![Maladrum](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maladrum/32/1013148_2.png) [@Maladrum](https://forums.unrealengine.com/u/Maladrum)\
**Post date:** [January 12, 2025, 5:01pm UTC](https://forums.unrealengine.com/t/must-i-check-for-an-implemented-interface-on-an-object-when-executing-a-function-by-message/2273273/3 "2025-01-12T17:01:25Z")

</div>

Thanks for verifying this!

---

<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:** [February 11, 2025, 5:01pm UTC](https://forums.unrealengine.com/t/must-i-check-for-an-implemented-interface-on-an-object-when-executing-a-function-by-message/2273273/4 "2025-02-11T17:01:54Z")

</div>

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