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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Add comment