#[Optional] with DynamicBuffers?

1 messages · Page 1 of 1 (latest)

cunning garden
#

I noticed the [Optional] attribute doesn't seem to work with DynamicBuffers in aspects (i.e. no IsValid property is added to the member). Is there a different way to accomplish this?

cunning garden
#

One super hacky work around seems to be splitting the job into two variants, one that deps the dynamicbuffer and another that doesn't, but does have [WithNone(typeof(BufferElement))]. Not ideal. Hopefully there is a cleaner solution.