How do you make a Blueprint function with a colour picker on an input pin?

As seen in the image, DrawDebugLine lets the user set the colour right on the node’s input pin.

293494-image-003-20191206.png

How does one make their own BP function with a FColor input that does the same thing?

Answer: Don’t use a Color input, use a LinearColor. The colour picker then appears automatically.

2 Likes

Did you look at the code for that “Draw Debug Line” node, and try to repeat its setup in a custom BP function?

Hi, any reason you don’t want to use “Linear Color” as variable type?

I didn’t think of that, thanks :slight_smile:

Looks like I answered without noticing your comment. I didn’t know LinearColor was a thing, and that was indeed the solution. Thanks :slight_smile: