Struct value set through a component is reset to default when modified through the level instance. If it's not set through the component, it works fine.

User Description:

There is a bug in the engine where setting a value from a custom structs inside BP components are being reset to default after editing it in the actor's instance. I discovered this bug when my marketplace customers reported it.

The component is attached to the ThirdPersonCharacter BP. If you edit the speed of the Follow Config, the enum will also reset.

It should be noted that if default values are not set inside the component or actor, then the bug doesn't happen. Unfortunately, this is unacceptable for my product since I need to set default values so my customers don't have to bother with all of them.

I hope you can fix this bug. I think this is still related to circular dependency.

Steps to Reproduce
  1. Open the attached test project
  2. Select the ThirdPersonCharacter in the level
  3. In the Details panel, select the BP_BugTest component
  4. Default > Follow Config dropdown > Set the Spead to 35

Results: The Behavior Type will reset to the default value of Idle

Expected: For all values to be set without any values resetting to defaults

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

Login to Vote

ComponentUE - Gameplay
Affects Versions4.
Target Fix4.19
Fix Commit3788496
Main Commit3804136
Release Commit3813083
CreatedJul 3, 2017
ResolvedDec 5, 2017
UpdatedFeb 7, 2018
View Jira Issue