BindAxis from ACharacter to UObject
On my ACharacter I'm instantiating a new UObject: basicECU = NewObject();
And then I want to bind the axis and actions from the InputComponent to it, so I have: InputComponent->BindAxis("Gas", basicECU, &UBasicECU::Gas); InputComponent->BindAxis("Steer", basicECU, &UBasicECU::Steer); InputComponent->BindAxis("Strafe", basicECU, &UBasicECU::Strafe);
..But this makes the editor crash as soon as the first bind gets called.
asked Oct 11 '17 at 07:24 PM in C++ Programming
Crash Error would be helpfull. I can only guess here but I assume your Object got garbage Collected. Did you make your UObject a UPROPERTY? Aside from that what does your Object creation exactly look like?
answered Oct 11 '17 at 09:21 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here