Skip to content

UENUM的某一项为表达式时,默认值没有分析出来 #331

Closed
@xuyanghuang-tencent

Description

测试环境:UE 4.26

UENUM()
enum EEnumForIssue331
{
    RECORD_NONE = 0,
    RECORD_TO_FILE = 1 + 2,
    RECORD_TO_LOG = 4,
};

UENUM()
enum class EEnumForIssue331 : uint8
{
    RECORD_NONE = 0,
    RECORD_TO_FILE = 1 + 2,
    RECORD_TO_LOG = 4,
};

UnLuaDefaultParamCollector 模块中调用Enum->GetValueByNameString("RECORD_TO_FILE")得到的会是-1。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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