When a map is added as a local variable for a blueprint function, the blueprint will failt o compile.
Regression:
No, same behavior occurs in 4.16.3
Workaround:
Setting the key/value pair to int/int will allow the blueprint to compile. This in turn allows other key/value pairs to compile as well
Result:
The Blueprint will fail to compile with the errors shown in callstack field
Expected:
Blueprint compiles after adding local map variable / element
errors reported in blueprint on compile:
Blueprint Internal Compiler Error: Could not connect default value to input pin [Local Var Name] Default value " for [Local Var Name] is invalid: 'Map inputs (like 'Local Var Name]') must have an input wired into them (try connecting a MakMap node).'
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-51088 in the post.
5 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.16.3, 4.17.2, 4.18, 4.23 |
Created | Oct 11, 2017 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |