# UE5 EA2 to Preview 1, Control Rig Component "Add Mapped Skeletal Mesh" cannot be added to Construction Script anymore, crashes engine

**URL:** <https://forums.unrealengine.com/t/ue5-ea2-to-preview-1-control-rig-component-add-mapped-skeletal-mesh-cannot-be-added-to-construction-script-anymore-crashes-engine/503976>\
**Category:** Character & Animation\
**Tags:** unreal-engine, crash, UE5-0, editor\
**Created:** [March 4, 2022, 9:09am UTC](https://forums.unrealengine.com/t/ue5-ea2-to-preview-1-control-rig-component-add-mapped-skeletal-mesh-cannot-be-added-to-construction-script-anymore-crashes-engine/503976 "2022-03-04T09:09:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![redhousegames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redhousegames/32/461590_2.png) [@redhousegames](https://forums.unrealengine.com/u/redhousegames)\
**Post date:** [March 14, 2022, 4:05pm UTC](https://forums.unrealengine.com/t/ue5-ea2-to-preview-1-control-rig-component-add-mapped-skeletal-mesh-cannot-be-added-to-construction-script-anymore-crashes-engine/503976/3 "2022-03-14T16:05:37Z")

</div>

We have the same issue trying to work with Control Rig in the 5.0 Preview 1. On the CPP side of things, the AddMappedSkeletalMesh function is now marked as ‘UnsafeDuringActorConstruction’ which means it cannot be called in the construction script.

We tried to use the function during the PostInitialize event, but the error message provided in the function UControlRigComponent::EnsureCalledOutsideOfBracket says that the AddMappedSkeletalMesh function _should_ be called during the construction script.

It seems like ControlRig has a new intended use for this function, but it seems like were gonna have to wait for some guidance/documentation to know what that is.

---

_[View the full topic](https://forums.unrealengine.com/t/ue5-ea2-to-preview-1-control-rig-component-add-mapped-skeletal-mesh-cannot-be-added-to-construction-script-anymore-crashes-engine/503976)._
