Search Issue Tracker
Duplicate
Duplicate in 2023.2.X
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
-
Resolution Note:
null
Duplicate of https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-27593 -
Resolution Note (2023.2.X):
null
Duplicate of https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-27593
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- PlayerPropertiesChanged event fires before Player Properties are applied
- Opening Media Pop-out in “Before You Start” Tutorial throws “Styles” and “Styles_Dark” messages in the Console window
- Play Mode Scenario selection/highlight is too long and out of its bounds when the Play Mode Scenario window is opened after maximizing
- Asset name is not shown in the Undo History window when a sprite is modified
- Moving a Tab to a floating window fails when floating windows are docked next to each other
This is a duplicate of issue #UUM-27593