Description

When the Get Class Defaults node contains a struct pin, breaking the struct causes the resulting pin to read "StructName_StructVarName". This causes the blueprint to fail to compile if the pin is used in the blueprint.

Steps to Reproduce
  1. Open UE4 Editor (any project)
  2. In content browser, Right Click->Blueprints->Structure (TestStruct)
  3. Create and open blueprint based on actor (TestBP)
  4. Add variable to TestBP and set type to TestStruct
  5. Right click to add Get Class Defaults node
  6. Right click TestStruct pin and select Split Struct Pin
    • Note pin now reads "TestStruct Member Var 0"
  7. Wire Begin Play node into Branch node
  8. Wire TestStruct Member Var 0 pin into Branch Condition
  9. Compile BP

Result:
BP fails to compile because it is looking for "TestStruct Member Var 0" variable that doesn't exist

Expected:
Blueprint recognizes pin is part of the struct variable rather than a variable of the blueprint itself

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.15.24.16
Target Fix4.18
Fix Commit3547438
Main Commit3582334
Release Commit3643070
CreatedMay 8, 2017
ResolvedJul 20, 2017
UpdatedSep 26, 2017
View Jira Issue