Summary
In unreal 5.8 cpp, I have a ACCharacter class, inheriting from ACharacter and an ACPlayerCharacter that inherits from ACCharacter. In Editor I use a blueprint class of ACPlayerCharacter to set properties and I have it as the default Pawn. On death I set the collision for the capsule component to NoCollision in the ACCharacter class. After play in editor the default values in the blueprint are changed to NoCollision. So consecutive plays the character falls through the floor until I reset the blueprint. As a workaround I now set the collision again in EndPlay, but I don’t think it was supposed to change the blueprint values during play.
What Type of Bug are you experiencing?
Gameplay
Steps to Reproduce
- Create a custom CPP character class, on BeginPlay do a GetCapsuleComponent()->SetCollisionEnabled(ECollisionEnabled::NoCollision).
- in editor create a BP that inherits from this class and set this as the default Pawn. Make sure in the BP the collision for the Capsule is set and everything is saved.
- Play in Editor.
- Look at your BP, collision for the capsule will be changed after play!
Expected Result
Play should not affect BP properties after play.
Observed Result
Play has changed properties of BP after play.
Affects Versions
5.8
Platform(s)
Windows