#Aspect code gen still broken when inside using

1 messages · Page 1 of 1 (latest)

silver river
#

Broke in pre.44, still broken in pre.65

{
    using Unity.Entities;

    public readonly partial struct MyAspect : IAspect```
#

guess i'll try to remember to make an actual bug report for this tomorrow

#

Aspect code gen still broken when inside using

bold lion
#

Hey @silver river , I tried this locally and it seemed like it worked for me. Are you seeing a compilation error or incorrect behavior?

silver river
#

Ah let me test again when I get to a pc

silver river
#

i still get the error @bold lion

#

Not just a Rider issue, inside Unity I get these


Unity.Entities.SourceGen.AspectGenerator\Unity.Entities.SourceGen.Aspect.AspectGenerator\PathCorridor__Aspect_8596371310.g.cs(4,87): error CS0535: 'PathCorridor' does not implement interface member 'IAspectCreate<PathCorridor>.AddComponentRequirementsTo(ref UnsafeList<ComponentType>, bool)'```
#

as soon as I move the Unity.Entities inside the the namespace

bold lion
#

Thanks @silver river . It seems like it is fixed locally so perhaps it just did not get backported to our release branch. Someone on our team will look into it!

spare epoch
pale cipher
#

Hello @silver river UnityChanSalute
I'm trying to replicate the bug but I'm unsuccessful so far.
Could you confirm if this code replicates the issue?

namespace Test
{
    using Unity.Entities;
    public readonly partial struct MyAspect : IAspect
    {
        public readonly RefRW<Unity.Transforms.LocalTransform> LocalTransform;
    }
}
silver river