make this editor cache thing editor only
{
sliceIndex = m_LocatorInSliceArray[texId];
bFoundAvailOrExistingSlice = true;
#if UNITY_EDITOR
if(m_TextureCacheVersion!=s_GlobalTextureCacheVersion)
m_TextureCacheVersion++;
#endif
//assert(m_SliceArray[sliceIndex].TexID==TexID);
}