could not repro in 4.9
Child character's Variable changes to the default value in a packaged project.
User Description:
Name of player character resets (to default value specified in parent class) after packaging.
3. Play in Editor or Standalone Game = "Bob", correct name.
2. Package the project (tested with shipping 32 bit build), launch packaged game and now the text says "(Unnamed)", which is default value specified in "Unit" class.
3. The bug is gone when you delete "skill" variable from "Unit" class or delete GetPlayerCharacter->get name->print name logic from "Skill" class.
1. Open the attached test project 'MyProject_Slav1'
2. PIE
3. You will see the text actor change to Human as well as print on screen
4. Press Stop
5. Press Launch or Package the project
Results: The text actor and what is printed to the screen will be the default value set in the Parent character bp.
Expected: For the blueprints to work the same regardless of playmode and if packaged.
Test Project breakdown:
NOTE: If the 'BP_Skill' logic is removed from that bp OR the 'BP_Skill' var is removed from the 'BP_Unit' bp, the project will work correctly if packaged.
Head over to the existing Questions & Answers thread and let us know what's up.
2 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.8, 4.9 |
Target Fix | 4.9 |
Fix Commit | 2627755 |
---|
Created | Jun 22, 2015 |
---|---|
Resolved | Jul 31, 2015 |
Updated | Apr 27, 2018 |