Announcement

Collapse
No announcement yet.

Change Crosshair

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Change Crosshair

    Hello, i have create a standard HUD with a little Crosshair in the middle of the Screen. My question is, how can i change the Crosshair, while im over a usable Object?

    Thnx very nuch...

    #2
    I tried to to something like the image (change the crosshair of the Unreal Engine template HUD).

    But I got the error: canvas draw functions may only be called during the handling of the drawhud event

    I think you can just change the image of your own HUD. Do you wanna change when you "look" to something?

    Comment


      #3
      Yes, i want to change the Image from the Cross to a Hand or something when i´m over a interactable Object. Can i use multiple Linetrace Nodes? i have one for interact with Object´s. I think i need another one with a Eventtick....

      Comment


        #4
        You're right. This should be the solution. When your linetrace hit your object, you can set a boolean variable in your player and grab this boolean in your HUD. When it's true, you show the other crosshair.

        Comment


          #5
          Yes, but how i change just the image of the Crosshair? Or must i change the complete HUD?

          Comment


            #6
            You can create two canvas or whatever you want to put an image inside. In your blueprint, you can change the "visibility" of these canvas/horizontal boxes/...

            Comment


              #7
              Inside each canvas, put your image.
              Attached Files

              Comment

              Working...
              X