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
- Crash on CollectAllSceneManagerAndObjectIDs when opening a specific Scene
- GPU device suspended error when replaying a video in the Video Player with NVIDIA Vertical Sync set to Fast
- GPU device suspended error when replaying a video in the Video Player with NVIDIA Vertical Sync set to Fast
- SetComponentEnabled uses class instead of struct when constraining Enableable Component type
- [iOS] Application.deepLinkActivated does not get invoked while app is running when UIApplicationSceneManifest is added in Info.plist
This is a duplicate of issue #UUM-27593