# Trying to hide a specific bone on an ACharacter

**URL:** <https://forums.unrealengine.com/t/trying-to-hide-a-specific-bone-on-an-acharacter/140665>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [March 30, 2020, 6:03pm UTC](https://forums.unrealengine.com/t/trying-to-hide-a-specific-bone-on-an-acharacter/140665 "2020-03-30T18:03:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_054791e9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_054791e9](https://forums.unrealengine.com/u/anonymous_user_054791e9)\
**Post date:** [March 30, 2020, 6:03pm UTC](https://forums.unrealengine.com/t/trying-to-hide-a-specific-bone-on-an-acharacter/140665/1 "2020-03-30T18:03:07Z")

</div>

Hi, I’m new with UE4, and decided I would start with something simple, like hiding a bone. But it has proven more difficult than I originally intended.  
I’ve tried:  
Code:

```auto

USkeletalMeshComponent* SkeletalMesh = GetMesh();
SkeletalMesh->HideBone(SkeletalMesh->GetBoneIndex(FName(TEXT("lowerarm_r"))), PBO_None);

```

---

<div class="post-metadata">

**Author:** ![DefCZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DefCZ](https://forums.unrealengine.com/u/DefCZ)\
**Post date:** [March 31, 2020, 10:41am UTC](https://forums.unrealengine.com/t/trying-to-hide-a-specific-bone-on-an-acharacter/140665/2 "2020-03-31T10:41:01Z")

</div>

No sure what you exactly mean by “hiding a bone”. After inspecting USkeletalMeshComponent::HideBone, you can see it just removes physical objects (“simulated” objects) from PhysX – therefore it removes “bone” (and all objects down in the hierarchy with it) from ragdoll. I doubt it affects rendering (a visual part of skeletal mesh) in any way as it is much more complicated task. I remember days when it was needed when working on a game and it was solved by scaling down to zero bone transformations. Therefore vertices bound to those bones collapsed to a single point.

---

<div class="post-metadata">

**Author:** ![Xenoxothedouble](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xenoxothedouble](https://forums.unrealengine.com/u/Xenoxothedouble)\
**Post date:** [October 14, 2023, 4:26pm UTC](https://forums.unrealengine.com/t/trying-to-hide-a-specific-bone-on-an-acharacter/140665/3 "2023-10-14T16:26:25Z")

</div>

To any wayward wanderers of the future, one trick that worked for me is to do the bone hiding inside AYourCharacterClass::BeginPlay()

For some reason it doesn’t work if done in a constructor, or at least I am unable to get it to work.

EDIT: I should also note that as far as I can tweak it, if you hide a bone, Unreal will hide all child bones. It works for me as I’m trying to hide a whole arm, but yea I don’t know how to do that use case. Here’s a thread for just this issue btw [Hide/Unhide a specific bone by name - #3 by dodolfo44](https://forums.unrealengine.com/t/hide-unhide-a-specific-bone-by-name/481745/3)
