Swap Material via Number Input

Hi All,

I’d like to be able enter a number into my blueprint widget and have that drive the material of my character.
What I have come up with is a “Player Info” widget that has editable text in it. This editable text is fed into a variable, after conversion to int this value is plugged into a switch on int that should select the material.

](filedata/fetch?id=1781812&d=1593349779)
](filedata/fetch?id=1781815&d=1593349779)
When I enter “1” the print string appears on screen but the material doesn’t change.
](filedata/fetch?id=1781813&d=1593349778)
This is not working. I’m wondering if this is the right approach or if it’s just my execution that is off.
See screenshot for illustration.

](filedata/fetch?id=1781819&d=1593349778)
](filedata/fetch?id=1781816&d=1593349778)
](filedata/fetch?id=1781817&d=1593349778)
](filedata/fetch?id=1781814&d=1593349778)

A capsule component has no material. Skeletal or static meshes can have materials. So get the skeletal mesh in the ThirdPersonCharacter and set the material on it, not on the CapsuleComponent.

Duh, thank you so much.