Example #1
0
 private static void Write(UnsafeWriter writer, AssetScriptUsagesDataElement value)
 {
     writer.Write(value.myAssetUsages.Count);
     foreach (var v in value.myAssetUsages)
     {
         v.WriteTo(writer);
     }
 }
Example #2
0
        private static object Read(UnsafeReader reader)
        {
            var count  = reader.ReadInt32();
            var result = new AssetScriptUsagesDataElement(count);

            for (int i = 0; i < count; i++)
            {
                result.myAssetUsages.Add(AssetScriptUsage.ReadFrom(reader));
            }

            return(result);
        }