#Closed Generic Components in IJobEntity

1 messages · Page 1 of 1 (latest)

onyx moat
#

I totally get open generics not working and wouldn't really expect it, but I was kind of surprised to learn today that closed generics don't seem to play nice with IJobEntity either

        [assembly:RegisterGenericComponentType(typeof(Test<int>))]

        public partial struct TestJob : IJobEntity
        {
            private void Execute(in Test<int> value)
            {
            }
        }

        public struct Test<T> : IComponentData
            where T : unmanaged
        {
        }```
`error CS0426: The type name 'InternalCompilerQueryAndHandleData' does not exist in the type 'TestJob'`
Is this on the horizon by any chance @half mist? (sorry for ping ![mopLurk](https://cdn.discordapp.com/emojis/1016644738042056704.webp?size=128 "mopLurk"))
onyx moat
#

Closed Generic Components in IJobEntity