public void SetDatabaseEntry(PrefabEntity entity) { _prefabPath = entity.ResourcePath; _assetType = AssetType.Prefab; _origin = entity.ResourcePath; _componentDiff = new SerializedComponentDifferences(); }
public SerializedMetaData(SerializationInfo info, StreamingContext context) { _prefabPath = info.GetValue(nameof(_prefabPath), _prefabPath); _serializationId = (int)info.GetValue("SerializationId", typeof(int)); _assetType = (AssetType)info.GetValue("AssetType", typeof(AssetType)); _componentDiff = (SerializedComponentDifferences)info.GetValue("ComponentDiff", typeof(SerializedComponentDifferences)); }
public SerializedMetaData() { _componentDiff = new SerializedComponentDifferences(); }