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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment