コード例 #1
0
 /**
  * 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));
 }
コード例 #2
0
        /**
         * Basic constructor (used on instance assets).
         */
        public pb_MetaData()
        {
            _assetType       = AssetType.Instance;
            _fileId          = GUID_NOT_FOUND;
            _assetBundlePath = null;

            componentDiff = new pb_ComponentDiff();
        }
コード例 #3
0
 void OnEnable()
 {
     data = (pb_MetaDataComponent)target;
     diff = data.metadata.componentDiff;
 }