Skip to content

Commit

Permalink
[unity]获取静态字段时,需要先走一次静态字段的初始化逻辑 (#1931)
Browse files Browse the repository at this point in the history
  • Loading branch information
zentia authored Dec 3, 2024
1 parent 88c3ab3 commit 75eea01
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ void GetFieldValue(void *ptr, FieldInfo *field, size_t offset, void *value)
}
else
{
il2cpp::vm::Runtime::ClassInit(field->parent);
Field::StaticGetValue(field, value);
}
}
Expand Down

0 comments on commit 75eea01

Please sign in to comment.