/** * Serialized constructor. */ public pb_MetaData(SerializationInfo info, StreamingContext context) { _fileId = (string)info.GetValue("_fileId", typeof(string)); _assetBundlePath = (pb_AssetBundlePath)info.GetValue("_assetBundlePath", typeof(pb_AssetBundlePath)); _assetType = (AssetType)info.GetValue("_assetType", typeof(AssetType)); componentDiff = (pb_ComponentDiff)info.GetValue("componentDiff", typeof(pb_ComponentDiff)); }
/** * Basic constructor (used on instance assets). */ public pb_MetaData() { _assetType = AssetType.Instance; _fileId = GUID_NOT_FOUND; _assetBundlePath = null; componentDiff = new pb_ComponentDiff(); }
void OnEnable() { data = (pb_MetaDataComponent)target; diff = data.metadata.componentDiff; }