#How to insert a string in IComponentData?

1 messages · Page 1 of 1 (latest)

fallen ridge
#

Is there any way to define a string inside a IComponentData? I've tried to use

public struct HouseComponent : IComponentData
{
    public string districtName;
    public int value;
}

but I get:

HouseComponent contains a field of System.String, which is neither primitive nor blittable.

I really do need a string to identify the Entities (Same house prefabs are atributed to different district with a unique name)

half scaffold
#

either blob string or FixedString