Skip to content

TSubclassOf<UUserWidget> 作为函数返回值,从lua传回C++为空 #445

@shuiliulcl

Description

@shuiliulcl

unlua版本Master分支2.2.1,虚幻版本5.0EA
从2.1.4更新之后出现,之前正常
lua打印正常,C++断点为nullptr


UFUNCTION(BlueprintImplementableEvent)
TSubclassOf<UUserWidget> GetUPClass(const int32 InUPType);
……

TSubclassOf<UUserWidget> WidgetClass = GetUPClass(InUPType);
if (WidgetClass == nullptr)
{
      return nullptr;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions