Math Expressions cannot use variables from hidden categories


I have some blueprints with transient properties that are used internally and I add them to a category that is hidden by using the Hide Categories list in the class settings. This is done so they don’t show up in the detail/default panes and confuse our designers (we only want the variables they need to work with to be visible).

The problem is that this breaks any math expression that uses those variables causing a “cannot access ‘VariableName’ variable from the expression” error. I expected the hideCategories list to be merely a visual thing, but seems it actually affects compilation.

Hi ,

Unfortunately, I have not been able to reproduce this on my end. I set several variables to a hidden category and plugged them into a math expression node, however they were still read as I would expect.

  • Do you have any specific steps I can take to reproduce this error on my end?
  • Does this occur in a clean, blank project with no additional content or is it limited to one project?

Hi ,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment with the requested information.

I managed to reproduce it on the launcher version of 4.10.2:

  • Create a new blueprint class
  • Create a variable called “Foo”, set its type to integer
  • Set Foo’s category to “Bar”

  • Go to the class settings, add “Bar” to the “Hide Categories” list

  • Create a math expression like “Foo + 1”
  • The expression will not compile:

Here’s an empty project which shows the problem:
[link text][4]

Hi ,

I was able to reproduce this error on my end and have entered a bug report, UE-26208, to be assessed by the development staff.