#How can I access an aspect inside an IJobChunk?

1 messages · Page 1 of 1 (latest)

ashen tundra
#

I wanted to make a certain job generic, the generic type would be an aspect that I'd handle. However, I can't use generics with IJobEntity, so I switched to IJobChunk, but I can't seem to find how to access an aspect inside an IJobChunk.

tall belfry
#

Aspects generate a Handle struct you can pass in

#

Side note, Aspects are deprecated and probably shouldn't be developed around too heavily

ashen tundra
#

I see, is there a replacement in the pipeline for aspects or should I just stick to IComponentData, etc.?

tall belfry
#

none announced

#

didn't really sound like it though

#

you read about it in the last milestone updates on discussions

ashen tundra
#

Alright, thanks!

normal bison
tall belfry
#

aspects generate all the structs you need for IJC

normal bison
tall belfry
#

the aspect itself can't be generic

#

but if there are other generic parts within the job that use a non-generic aspect, sure

#

but i think i get what you mean

#

and i re-read the post

#

i don't think the handle has an interface either so yeah

#

wouldn't work