LinearColor as a Expose-On-Spawn var doesn't work.

So I have a bug here, which is kind of strange.
I have a widget, which contains two LinearColor variables which are exposed on spawn, so I can spawn the widget with specifying it’s color. The default value is white of both. The variables are shown correctly in the Create Widget node, and the blueprint with the spawner compiles fine. Once I change a color through the little color box next to the variable name, it won’t compile… Following error occurs:

Error The type of  Frame Color  is undetermined.  Connect something to  Create Widget  to imply a specific type.
Error The current value ((R=1.000000,G=0.000000,B=0.000000,A=1.000000)) of the ' Frame Color ' pin is invalid: 'Value' must have an input wired into it ("by ref" params expect a valid input to operate on).
Warning [0751.73] Compile of UI_MainMenu_Alt3 failed. 2 Fatal Issue(s) 0 Warning(s) [in 132 ms]

If I change the value back again to white, it works again, so the blueprint fails compiling when the color choosen with the color box is different than the default value, cause if I change the default value of that variable to red, it compiles with a red box inside the Create widget node. Steps to reproduce:

  1. Create a blank project
  2. Create a widget blueprint
  3. Add a LinearColor variable to it, set it to Editable and Exposed On Spawn
  4. Compile + Save
  5. Go into the level blueprint
  6. Add a Create Widget node and fill in the Widget class you created
  7. Try compiling, should work.
  8. Change the color of your var via the color box
  9. Try compiling, shouldn’t work.

As the error message tells, if you connect a “Make Linear Color” node to it, it works, but I don’t like that (I prefer the color picker :3).

Hope you can reproduce it :slight_smile:

Found out that two nodes do it with LinearColor to Color and the Color to LinearColor. Pic:

http://www.sumopaint.com/images/temp/xzetkmkogcnxkafi.png

Hello ,

After doing some digging I found that this is a known issue (UE-23130) and that is has been resolved internally. This solution will be available in a later release of the engine. If you would like to use the color picker you can do so by selecting your color and then splitting the pin. This will keep the values that you gave the color picker and bypass the error. I hope that this information helps.

Make it a great day