Announcement

Collapse
No announcement yet.

Minor "bug" in generated MyHud class from FirstPerson Template (C++)

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

    Minor "bug" in generated MyHud class from FirstPerson Template (C++)

    Code:
    	// offset by half the texture's dimensions so that the center of the texture aligns with the center of the Canvas
    
    /*	
            //That's wrong, first of, the position has to be offset in negative direction, and not only the Y direction. Also, using the texture is more reliable for replacing the texture :) No big deal, but I figured I'd just post it here
            const FVector2D CrosshairDrawPosition( (Center.X), (Center.Y + 20.0f));
    */
    
           //How it should be
    	const FVector2D CrosshairDrawPosition(Center.X - CrosshairTex->GetSizeX() / 2.f, Center.Y - CrosshairTex->GetSizeY() / 2.f);


    Freelancer for UE4 and more! www.mykoncodes.com
Working...
X