UUserWidget 클래스에서 SynchronizeProperties 함수가 있는데
//~ Begin UWidget Interface
virtual void SynchronizeProperties() override;
이 클래스를 상속받아 함수를 오버라이드 해서 관련 코드를 작성하면 해당 결과를 에디터 상에서 실행 없이 바로 볼 수 있다
UCLASS(Blueprintable)
class UCCCWidget : public UUserWidget
virtual void SynchronizeProperties() override;
};
void UCCCWidget::SynchronizeProperties()
{
Super::SynchronizeProperties();
//원하는 동작 작성..
}
반응형
'게임엔진(GameEngine) > Unreal4' 카테고리의 다른 글
PBR 자세한 샘플 예시 (0) | 2017.03.31 |
---|---|
인터페이스 ( UInterface ) (0) | 2017.03.23 |
World Location 과 Relative Location 의 차이 (0) | 2016.11.24 |
A 메쉬애니를 B메쉬에 동일한 애니메이션을 적용 시키고자 할 때 SetMasterPoseComponent (0) | 2016.11.23 |
Render 3D objects in UMG Widget/HUD , you know~! (1) | 2016.10.27 |