#Aspect code gen still broken when inside using
1 messages · Page 1 of 1 (latest)
guess i'll try to remember to make an actual bug report for this tomorrow
Aspect code gen still broken when inside using
Hey @silver river , I tried this locally and it seemed like it worked for me. Are you seeing a compilation error or incorrect behavior?
Ah let me test again when I get to a pc
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
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!
Is that working if namespace change to class type?
Hello @silver river 
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;
}
}
yeah it does
Unity.Entities.SourceGen.AspectGenerator\Unity.Entities.SourceGen.Aspect.AspectGenerator\MyAspect__Aspect_12471511840.g.cs(36,99): error CS0246: The type or namespace name 'ComponentType' could not be found (are you missing a using directive or an assembly reference?)