Skip to content

Commit

Permalink
fix #173
Browse files Browse the repository at this point in the history
  • Loading branch information
pangweiwei committed Jul 31, 2019
1 parent c14ea36 commit e071279
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@

#include "LuaUserWidget.h"

void ULuaUserWidget::NativeConstruct()
void ULuaUserWidget::NativeOnInitialized()
{
Super::NativeOnInitialized();
if (!init(this, "LuaUserWidget", LuaStateName, LuaFilePath)) return;
}

void ULuaUserWidget::NativeConstruct()
{
Super::NativeConstruct();
#if (ENGINE_MINOR_VERSION==18)
bCanEverTick = postInit("bHasScriptImplementedTick", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class SLUA_UNREAL_API ULuaUserWidget : public UUserWidget, public slua_Luabase,
GENERATED_BODY()

protected:
virtual void NativeOnInitialized() override;
virtual void NativeConstruct() override;
virtual void NativeDestruct() override;
virtual void NativeTick(const FGeometry& MyGeometry, float InDeltaTime) override;
Expand Down

0 comments on commit e071279

Please sign in to comment.