Search Issue Tracker

Duplicate

Votes

0

Found in

2022.2.9f1

2023.1.0b5

2023.2.0a4

Issue ID

UUM-30542

Regression

Yes

GetCustomAttributes doesn't get attributes when using player with IL2CPP

-

Reproduction steps:
1. Open the attached project “AttributesIL2CPP”
2. Enter Play mode and observe the log messages in the Console window
3. Click on both messages to get more information about them and ensure that Field attributes are the same in both messages
4. Exit Play mode
5. Select File > Build And Run
6. Wait until the Player is opened
7. In file explorer open the .log file located in “C:\Users\{username}\AppData\LocalLow\DefaultCompany\GetCustomAttributeBug\Player”
8. In the .log file “Player”, observe Field attributes for “BaseClass” and “DerivedClass”

Expected result: Attributes are the same in Editor and Player
Actual result: GetCustomAttributes() returns nothing for the “DerivedClass” in the Player

Reproducible with: 2022.2.0a11, 2022.2.9f1, 2023.1.0b5, 2023.2.0a4
Not reproducible with: 2021.3.20f1, 2022.2.0a10
Couldn't test with: 2020.3.45f1 (Visual Studio 2017 support for x64 is not installed error)

Reproducible on: Windows 10
Not reproducible on: macOS 13.2.1

  1. This is a duplicate of issue #UUM-27593

    IL2CPP throws errors when using custom attributes

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.