I am trying to make a crosshair that can be edited from the player character. So if the player chooses a size of 20 or changes the image it will change. The image works but scaling the image doesn’t. I’ve tried everything from size boxes to scale boxes to even changing the image size and it does not update at all.
How are you displaying this widget?
- is the widget in the viewport (or you’re using an actor component)?
- is the image in the canvas (most likely, since you’ve exposed it)?
You generally do not need size boxes or scaling boxes but it does matter how you handle the rest of the setup.
- do not size the Image to content (this can be worked around if needed for something else, though)
- anchor it:
- resize its slot:
This is assuming the widget is sitting directly in the canvas. Essentially, we’re manipulating these values with script:
Note how it reads Slot (Canvas Panel Slot)
.
1 Like
THANK YOU TAHT WORKED PERFECTLY!! I never thought to slot it as a canvas slot!!
1 Like