# Change Actor in game play

**URL:** <https://forums.unrealengine.com/t/change-actor-in-game-play/339949>\
**Category:** Blueprint\
**Tags:** actor, unreal-engine, mouse-click, CPP, Blueprint, question\
**Created:** [November 28, 2015, 4:06pm UTC](https://forums.unrealengine.com/t/change-actor-in-game-play/339949 "2015-11-28T16:06:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_77d92c1d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_77d92c1d](https://forums.unrealengine.com/u/anonymous_user_77d92c1d)\
**Post date:** [November 28, 2015, 4:06pm UTC](https://forums.unrealengine.com/t/change-actor-in-game-play/339949/1 "2015-11-28T16:06:37Z")

</div>

i have a actor created in c++ class and then use a blue print to assign the mesh etc, my question is, is it possible to change this actor or mesh when the actor is clicked on during the game play?? and the new actor will go in a the same transformation and rotation as the old actor??

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [November 28, 2015, 5:45pm UTC](https://forums.unrealengine.com/t/change-actor-in-game-play/339949/2 "2015-11-28T17:45:19Z")

</div>

You seem to know what to do, why don’t you try it? Clearly you want to spawn new actor (dont forget to change possesion in playercontroller) on same location and then delete old actor. You can also change mesh if you want, but best for that would be blueprint code that can refrence to mesh a lot easier, in mesh components you got those functions:

> **[USkeletalMeshComponent::SetSkeletalMesh](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Engine/Components/USkeletalMeshComponent/SetSkeletalMesh/)**
>
> Change the SkeletalMesh that is rendered for this Component.

> **[UStaticMeshComponent::SetStaticMesh](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Engine/Components/UStaticMeshComponent/SetStaticMesh/)**
>
> Change the StaticMesh used by this instance.

Those C++ only function so you need to create your own function that expose that in to blueprints
