Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback FixedList's use case limited by IComparable requirement

Discussion in 'Entity Component System' started by Edvard-D, Jan 22, 2020.

  1. Edvard-D

    Edvard-D

    Joined:
    Jun 14, 2012
    Posts:
    125
    I'm sure there are reasons for why FixedList requires the types to implement IComparable, but the main use case for me was going to be storing keys that are float2/float4 values. These don't implement IComparable, and thus can't be used as the type value for FixedLists.

    Just wanted to voice this complaint in the event that something can be done about it one way or another. Would love to be able to get rid of some DynamicBuffers.
     
    MNNoxMortem likes this.