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
-
Resolution Note:
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
This is a duplicate of issue #UUM-27593