Access UPhysicsConstraintComponent from Blueprint in C++
I have created an Actor Blueprint. Inside it I have adds Two static meshes connected with a PhysicsConstraintComponent. I now want to access that PhysicsConstraintComponent through C++. So I created a custom C++ Class of type Actor and set the CustomActorBlueprint with that class.
How do I access that PhysicsConstraintComponent, so that I can then change its values like the angular motor speed and so on?
But it tells me that : error: static_assert failed "'T' template parameter to GetComponents must be derived from UActorComponent"
Which for me makes no sesne because this UPhysicsConstraintComponent is derived from UActorComponent.
Follow this question
Once you sign in you will be able to subscribe for any updates here