Problems trying to make a rotating mouse pointer.

I am trying to make a rotating mouse pointer.

I have the mouse pointer working fine, but I can’t get it to rotate.

  1. First, What I did was create material that has a CustomRotator and Scaler Parameter that can be changed in a blueprint.
  2. Second, I created Hud blueprint and got my mouse working fine as a static image.
  3. Then I setup the Construction Script to create a Dynamic Material Instance, and assigned my mouse pointer to it.
  4. Finally I setup the blueprint to cycle the Scaler Parameter in the material instance for 0 to 1 over and over again so the mouse pointer will rotate.

Step 4 is where is all goes wrong. Here is what I know…
The Print String shows that the value is changing from 0 to 1 with increments of .1 and going back to 0 when it hits 1.
If I manually change that RotationValue in the material and run it, the mouse shows the new rotation, so I know the material is setup correctly.

Currently all I get is the mouse pointer rotated to whatever the default RotationValue is of the material.

Any ideas why this isn’t rotating the mouse pointer?

3d43a54e03245368d4355f0c18e1f6c0098c7b7d.jpeg 7d681c93b348a282b7856fb6ccdcda11eb9b417c.jpeg 04f87b1f0a3d1ee32c07564215dc3480a22060dd.jpeg

I might be wrong, not sure if i fully understand but it looks like in your material you have a scalar parameter value and in your blueprint you’re trying to change a vector parameter value.

Agreed, you need to set a Scalar

OK, I set the Scalar, and it is working as I wish it to now. Thanks for the help.