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]

IL2CPP

-

-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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.