Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.3.0-pre.4 - Entities
Issue ID
ECSB-1284
Regression
No
"Argument 2: cannot convert from 'Unity.Entities.RefRW<ComponentFoo>' to 'Unity.Entities.EnabledRefRW<ComponentFoo>'" error when nesting enableable components in Aspects
How to reproduce:
1. Open the “isolated bug“ project
2. Open the “Sample Scene“
3. Observe the Console window
Expected result: No errors are shown in the Console window
Actual result: “error CS1503: Argument 2: cannot convert from 'Unity.Entities.RefRW<ComponentFoo>' to 'Unity.Entities.EnabledRefRW<ComponentFoo>'“ error shown in the Console window
Reproducible with: 1.2.0, 1.2.1, 1.2.3, 1.3.0-exp.1, 1.3.0-pre.4 (2022.3.42f1, 6000.0.15f1)
Could not test with: 0.51.1-preview.21 (2021.3.42f1) (Aspect source generation is has not been introduced yet)
Reproducible on: macOS 14.5 (Intel), Windows 11 (User’s)
Not reproducible on: No other environments tested
Workaround: Changing the second argument of the “AspectFoo“ constructor to the “{{aspectbar_aspectfoo_componentfooRef}}“ value
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
- The Editor freezes on RenderGraphViewer.Repaint when entering too many characters in search fields without character limits
- Adding a new SubLayer in Graphics Compositor renders BaseLayer darker and makes it flicker
- DOTS Materials Not Rendering in Player When Using Entity Graphics with Custom SRP
- Sprite Pivot position in Sprite Editor and Scene View do not match when the position is custom
- [HDRP] Unchecking the "Base layer" in Graphics Compositor results in Camera view rendering over the window
Resolution Note:
There is a workaround so closing this as won't fix for now.