AHUD::DrawTexture

Clear·2025년 5월 1일

EPortfolio docs
AHUD

HUD 에 텍스처를 그립니다.

Code

	UFUNCTION(BlueprintCallable, Category=HUD, meta=(AdvancedDisplay = "9"))
	ENGINE_API void DrawTexture(
    UTexture* Texture,
    float ScreenX, 
    float ScreenY, 
    float ScreenW, 
    float ScreenH, 
    float TextureU,
    float TextureV,
    float TextureUWidth,
    float TextureVHeight,
    FLinearColor TintColor=FLinearColor::White,
    EBlendMode BlendMode=BLEND_Translucent,
    float Scale=1.f, 
    bool bScalePosition=false,
    float Rotation=0.f,
    FVector2D RotPivot=FVector2D::ZeroVector);

Paramter

  • Texture
    화면에 그릴 텍스처
  • ScreenX 왼쪽 상단 기준
    HUD 캔버스 상의 화면 X 좌표
  • ScreenY 왼쪽 상단 기준
    HUD 캔버스 상의 화면 Y 좌표
  • ScreenW 픽셀 단위
    텍스처를 그릴 너비
  • ScreenH 픽셀 단위
    텍스처를 그릴 높이
  • TextureU
    텍스처 내에서 잘라낼 시작 U 좌표
  • TextureV
    텍스처 내에서 잘라낼 시작 V 좌표
  • TextureUWidth
    텍스처 내에서 잘라낼 너비 영역 크기
  • TextureVHeight
    텍스처 내에서 잘라낼 높이 영역 크기
  • Color
    곱해질 색상
  • BlendMode
    혼합 모드
  • Scale
    전체 텍스처 크기와 위치에 곱해질 스케일 값
  • bScalePosition
    true일 경우 위치 또한 Scale 값의 영향을 받음
  • Rotation
    텍스처를 회전시킬 각도
  • RotPivot
    회전의 기준점
profile
Programmer

0개의 댓글