# Text commit as a trigger of an object texture change. How?

**URL:** <https://forums.unrealengine.com/t/text-commit-as-a-trigger-of-an-object-texture-change-how/1169508>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, Widget, Blueprint\
**Created:** [May 18, 2023, 7:10am UTC](https://forums.unrealengine.com/t/text-commit-as-a-trigger-of-an-object-texture-change-how/1169508 "2023-05-18T07:10:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NE-Hayden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NE-Hayden](https://forums.unrealengine.com/u/NE-Hayden)\
**Post date:** [May 18, 2023, 7:10am UTC](https://forums.unrealengine.com/t/text-commit-as-a-trigger-of-an-object-texture-change-how/1169508/1 "2023-05-18T07:10:09Z")

</div>

Hi all, Im super new to here, I need some help.  
So i have 2 actors at the moment:

#1 blueprint(Actor) that has UI widget, and the widget has text commit function when hitting Enter  
#2 blueprint(Also Actor) that has a function to change object’s texture by hitting Enter key.

Now I want to combine these 2 actors to have my txt commit as a trigger of the object texture change basically like when I type something, hit enter, changes the texture.

What would be the way to do this?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 18, 2023, 7:22am UTC](https://forums.unrealengine.com/t/text-commit-as-a-trigger-of-an-object-texture-change-how/1169508/2 "2023-05-18T07:22:51Z")

</div>

I answered something very similar the other day. You can make one blueprint, containing a mesh, that spawns a widget, which sends a message back to the actor

> [@Novice blueprint logic problems](https://forums.unrealengine.com/t/novice-blueprint-logic-problems/1167124/3):
>
> And now… ( drum roll ) the correct answer slight_smile Very similar, in fact. When you make the widget, give it an actor reference variable, and expose it on spawn, like this When you create the widget ( from wherever ), you say [image] The widget responds to the actor with a blueprint interface That call gets caught in the blueprint The interface definition

If you want to carry on doing it with separate objects, then in the widget, you can just do a ‘get actor of class’ to find your BP#2 and tell it to change.

---

<div class="post-metadata">

**Author:** ![PresumptivePanda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/presumptivepanda/32/1194593_2.png) [@PresumptivePanda](https://forums.unrealengine.com/u/PresumptivePanda)\
**Post date:** [May 18, 2023, 9:56pm UTC](https://forums.unrealengine.com/t/text-commit-as-a-trigger-of-an-object-texture-change-how/1169508/3 "2023-05-18T21:56:40Z")

</div>

Hi there @NE-Hayden, hope you’re well!

This topic has been moved from **International** to **Programming & Scripting: Blueprint**.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing!
