Announcement

Collapse
No announcement yet.

Accessing Character Components in C++

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Accessing Character Components in C++

    I want to attach another skeletal mesh to my character's mesh, because the inherited mesh is the body and the second mesh is the head. But I can't attach the second mesh, because the inherited mesh is private. What should I do to have access?

    #2
    You can simply add another USkeletalMeshComponent to your character class. C++Blueprint
    Main links:
    SneppyChannel
    PoliSquad
    Turbosquid 3D models

    Comment


      #3
      if you already have the USkeletalMeshComponent, try this:
      Code:
      YourNewMesh->SetupAttachment(GetMesh());
      This is a private member but it is accessible using the GetMesh function.

      PS: also you can get the capsule component using GetCapsuleComponent();

      Comment

      Working...
      X