# AI Perception - Break AIStimulus should have the type of perception included

**URL:** <https://forums.unrealengine.com/t/ai-perception-break-aistimulus-should-have-the-type-of-perception-included/346416>\
**Category:** AI\
**Tags:** Perception, unreal-engine, question\
**Created:** [February 4, 2016, 3:58pm UTC](https://forums.unrealengine.com/t/ai-perception-break-aistimulus-should-have-the-type-of-perception-included/346416 "2016-02-04T15:58:21Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![PixelFireXY](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pixelfirexy/32/1195765_2.png) [@PixelFireXY](https://forums.unrealengine.com/u/PixelFireXY)\
**Post date:** [June 11, 2024, 9:05am UTC](https://forums.unrealengine.com/t/ai-perception-break-aistimulus-should-have-the-type-of-perception-included/346416/7 "2024-06-11T09:05:29Z")

</div>

In the meantime, you can workaround like this:

> [@Is there a way to "Switch On Class"?](https://forums.unrealengine.com/t/is-there-a-way-to-switch-on-class/319644/12):
>
> I know this post is old but I found a solution to compare which Sense is which and keeping a reference comparison at the same time. Just create a macro and do the reference comparison inside it. And then you call the macro like this: [image] This is gross, I know… but at least you do not compare class names with strings but with references.

---

_[View the full topic](https://forums.unrealengine.com/t/ai-perception-break-aistimulus-should-have-the-type-of-perception-included/346416)._
