private BlobData ConvertBlob <T0>(IConvertScriptableObjectToBlob <T0> src, int identifier) where T0 : struct { #if DETAIL_MARKERS using (m_createBlob.Auto()) #endif { BlobAssetReference <T0> assetReference = src.Convert(this); return(BlobData.Create(assetReference, identifier)); } }
private BlobData ConvertBlob <T0, T1>(T0 obj, ScriptToBlobFunc <T0, T1> func, int identifier) where T0 : ScriptableObject where T1 : struct { #if DETAIL_MARKERS using (m_createBlobWithFunc.Auto()) #endif { BlobAssetReference <T1> assetReference = func.Invoke(obj, this); return(BlobData.Create(assetReference, identifier)); } }