Skip to content

[Unity] Bug: GenMinimumWrappersAndBridge模式下常量字段值异常 #2268

@CatAndHorse

Description

@CatAndHorse

前置阅读 | Pre-reading

Puer的版本 | Puer Version

2.2.3

Unity的版本 | Unity Version

2022.3.62

发生在哪个平台 | Platform

Android

错误信息 | Error Message

如下图截图的代码中CurrentType字段,在安卓真机 il2cpp模式编译
TS侧取
GenMinimumWrappersAndBridge()模式下会取到1 (错误)
GenV2()模式下会取到2 (正确)

字段定义:
Image

TS侧Log段代码:
Image

MinimumWrappersAndBridge()模式下的log截图
Image

问题重现 | Bug reproduce

在我的项目中的环境下是必现

Metadata

Metadata

Assignees

Labels

UnitybugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions