Debug.Assert(bFoundAvailOrExistingSlice,"The texture cache doesn't have enough space to store all textures. Please either increase the size of the texture cache, or use fewer unique textures.");
if(bFoundAvailOrExistingSlice)
if(bSwapSlice)// if this was a miss
{
#if UNITY_EDITOR
m_SliceArray[sliceIndex].hash=hash;
#endif
// transfer new slice to sliceIndex from source texture