protected internal override void Deserialize(IComponentDataReader reader, IAssetStore assetStore) { base.Deserialize(reader, assetStore); IntProperty = reader.ReadInt("IntProperty"); DoubleProperty = reader.ReadDouble("DoubleProperty"); StringProperty = reader.ReadString("StringProperty") ?? throw new InvalidOperationException(); }
/// <inheritdoc /> protected internal override void Deserialize(IComponentDataReader reader, IAssetStore assetStore) { base.Deserialize(reader, assetStore); Visible = reader.ReadBool("Visible"); SortingLayerName = reader.ReadString("SortingLayerName") ?? throw new InvalidOperationException("SortingLayerName cannot be null."); OrderInLayer = reader.ReadInt("OrderInLayer"); }