I created c++ function by modifying “SetSkeletalMesh”.
However, object reference of mesh is not compatible with created node in Blueprint.
I can’t conect mesh reference to Target pin.
What Should I do?
Mesh is SkeletalMeshComponent.
You’ve declared SkeletalMesh.
You need to change your function declaration or input a skeletalmesh to the input pin.
You can retrieve the SkeletalMesh from your Mesh
The class of an object is not just changed by casting to other class.
You need create and assign the exact instance to each object.
I think you need to change the Mesh Shorts into your class.
Where is the BP_TestHip_827 come from?
Did you change the parts into your own one? (MyLoverVRClothSimulation2 in this case)
Thanks for your pointing out about changing the mesh class!
I succeeded in connecting the target pin by creating Mesh Shorts used my original components!
Thanks to you, I have a better understanding of ue4 c++!