Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

use string as field of IComponentData

Discussion in 'Project Tiny' started by dallin_unity, Apr 22, 2021.

  1. dallin_unity

    dallin_unity

    Joined:
    Dec 18, 2019
    Posts:
    40
    Hi guys, I can't use string as field of IComponentData, I got this errror,
    ... System.String, which is neither primitive nor blittable

    is there any substitute to string data type that is usable in IComponentData?

    Thanks for your help.
     
  2. djsell

    djsell

    Joined:
    Aug 29, 2013
    Posts:
    77
    FixedString* from the collections package.
     
    tonialatalo likes this.