UE4 Pie Graph/Chart Material


(Download link at the bottom)

In Tropical Manipulation, I need to display the share of customers that each player will receive, and communicate the price interaction mechanics (a lower price gets more customers, etc). For this I’ve created a pie graph/chart material, so that I can add an image widget and use it in UMG.

I actually posted an early version of this on the UE4 forums, but it was a basic version that only gave results like this:

image

Today I updated it to have gorgeous smooth edges (inter-slice and outside) and a sine fade over each slice:

image

To use it, download the .uasset file here and put it somewhere in your project’s content directory. You can create a material instance from it and edit most settings, but you’ll get more value opening it up and taking a look at how it all runs.

Feel free to use this in all your projects. An attribution/link-back is much appreciated but not required.

Follow me on twitter for more updates. Enjoy!

Videogames

Hey, do you like videogames? If so check out my game Grab n' Throw on Steam, and add it to your wishlist. One gamemode is like dodgeball crossed with soccer except instead of balls you throw stacks of your own teammates. Another is like golf but on a 16x16km landscape with huge throw power to match. And there's plenty of others to come!

See full gameplay on Steam!


See also