Search Issue Tracker
Fixed in 5.2.4
Votes
0
Found in
5.2.2f1
Issue ID
738356
Regression
No
IL2CPP should not strip out methods of Nested Classes marked with [Preserve]
-e: Using the [Preserve] attribute works great for class methods, except nested classes. For nested classes, IL2CPP seems to strip them out regardless of whether a [Preserve] attribute has been added
-repro:
--open attached project
--add Runner.cs to scene
--save scene
--build and run IL2CPP build
--NOTICE the loglines:
---Found 0 constructors in class Bar
---Found 1 constructors in class Foo
---Found 0 constructors in class Foo.FooNested
--while it should actually look like below since FooNested is marked with [Preserve]:
---Found 0 constructors in class Bar
---Found 1 constructors in class Foo
---Found 1 constructors in class Foo.FooNested
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- VFX Graph Memory leak when calling the ClearPropertyBinders and AddRemoveVFXProperty
- Entering "Configure Avatar" inside the Inspector locks it
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
Add comment