Skip to content

Commit

Permalink
[unity]add PUERTS_DISABLE_REFLECT_EXTENSION macro to disable extensio…
Browse files Browse the repository at this point in the history
…n methods in reflection mode, fix #1847
  • Loading branch information
chexiongsheng committed Dec 2, 2024
1 parent f1a0498 commit 874a731
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ internal int RegisterType(

// extensionMethods
// 因为内存问题与crash问题移入宏中
#if PUERTS_REFLECT_ALL_EXTENSION || UNITY_EDITOR
#if (PUERTS_REFLECT_ALL_EXTENSION || UNITY_EDITOR) && !PUERTS_DISABLE_REFLECT_EXTENSION
// #if UNITY_EDITOR && !PUERTS_REFLECT_ALL_EXTENSION && !PUERTS_IL2CPP_OPTIMIZATION
// if (!UnityEditor.EditorApplication.isPlaying)
// #endif
Expand Down

0 comments on commit 874a731

Please sign in to comment.