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

Package: Entity Component System (ECS)

-

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

  1. Resolution Note:

    There is a workaround so closing this as won't fix for now.

Add comment

Log in to post comment