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
- Player flickers to a black screen when built on macOS
- Visual Studio debugger doesn't show full properties of animation variables on Android and IOS Platforms when using IL2CPP Scripting Backend
- [Linux][Plastic SCM] "Access Denied" error when downloading Plastic SCM Cloud Edition through the Editor
- UpdateRendererBonudingVolumes process takes more time when disabled Renderers are used
- "ArgumentNullException: Value cannot be null" error is thrown when selecting a Visual Element with a custom Render Texture set as a background
Add comment