Description

Attempting to clear an array in a const function returns no compiler error in blueprints. If you create the same setup in C++ using a const function, an error is returning upon compiling as expected.

Steps to Reproduce
  1. Open the editor
  2. Create a new actor blueprint
  3. Create a new function and set it to Const in the details panel
  4. Add an Array variable to the blueprint
  5. In the function, drag off to add a Clear node
  6. Get your array variable and connect it to the Clear node
  7. Compile

Result: No compiler warning

Expected: Compiler warning would appear as you are attempting to modify a property of the blueprint in a Const function.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-40445 in the post.

0
Login to Vote

By Design
ComponentUE - Gameplay - Blueprint
Affects Versions4.134.144.16
CreatedJan 11, 2017
ResolvedJan 12, 2017
UpdatedApr 27, 2018
View Jira Issue