Skip to content

打包後出現 MetaData is only allowed in the Editor. #2

@plasticanne

Description

@plasticanne

將專案直接打包, 打包後的執行檔會出錯:
Assertion failed: !FPlatformProperties::RequiresCookedData() [File:D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Package.cpp] [Line: 231] MetaData is only allowed in the Editor.

經測試原因可能出在 Plugins\FCScript\Source\FCScript\Private\FCDynamicClassDesc.cpp
82行在runtime用了 UMetaData

TMap<FName, FString>* MetaMap = UMetaData::GetMapForObject(Function);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions