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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
This is a duplicate of issue #UUM-27593