# Is it possible to allow a player/user to edit the terrain or even an object around them? 

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-allow-a-player-user-to-edit-the-terrain-or-even-an-object-around-them/606984>\
**Category:** Character & Animation\
**Tags:** unreal-engine, UE5-0, question\
**Created:** [July 17, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-allow-a-player-user-to-edit-the-terrain-or-even-an-object-around-them/606984 "2022-07-17T16:31:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bilalmalik03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bilalmalik03](https://forums.unrealengine.com/u/bilalmalik03)\
**Post date:** [July 17, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-allow-a-player-user-to-edit-the-terrain-or-even-an-object-around-them/606984/1 "2022-07-17T16:31:47Z")

</div>

I am trying to allow a user to select an object and be able to change certain parameters of the object, for example it’s length or width. Would anyone know how to go about this?

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [July 17, 2022, 6:24pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-allow-a-player-user-to-edit-the-terrain-or-even-an-object-around-them/606984/2 "2022-07-17T18:24:31Z")

</div>

Add a widget to the player screen that displays information about the selected object.

Inside the object, in the “OnClicked” callback, find the local player, and make the object register itself with the “selected” widget. Also, when selected, have the object update its material with some “selected” effect in the material shader, using a material instance dynamic.

In the widget, add whatever slider makes sense, and when the user changes them, call back to the selected object, updating whatever the properties are as necessary. Exactly how you bind “editable property” to “widget” is up to you – you can use some hard-coded functions and a base class of “editable object,” or you can define an interface that exposes lists of names/values, and a “set property by name” function, for two possible ways to go about it.
