Guillemsc / GDebugPanelGodot

Runtime debug panel for Godot 4.x with C#
MIT License
28 stars 1 forks source link

reflection problems on iOS #3

Open Kazox61 opened 2 months ago

Kazox61 commented 2 months ago

Smart: You can automatically generate a debug options section using a class. Using reflection, changes that occur on the debug panel will affect the class instance.

I had problems using reflection on iOS. Did you test it out?

felipejfc commented 2 months ago

Same here. The problem is it's not compatible with nativeaot

edit: for future reference. to solve this you can leverage code generation. for each method in this lib that receives object, generate code with the classes you will actually pass on runtime so the trimmer won't trim their reflection methods