LoginSignup
0
0

UE5 C++初期化備忘録

Last updated at Posted at 2023-05-29

C++で実装する場合、どこで初期化するか悩んだので備忘録
Superクラスを呼ぶのを忘れずに

Actorの初期化(レベルが開始したときに呼ばれる)

virtual void BeginPlay() override;

void MyActor::BeginPlay()
{
    Super::BeginPlay();
    // 任意の初期化

}

Widgetの初期化(表示するときに呼ばれる)

virtual void NativeConstruct() override;

void MyWidget::NativeConstruct()
{
    Super::NativeConstruct();
    // 任意の初期化

}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0