Version: 2020.1
LanguageEnglish
  • C#

Procedural.TextureStackBase<T0>.EvictRegion

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public void EvictRegion(Rect r, int mipMap, int numMips);

Parameters

r The rectangle in 0-1 UV space to evict. Anything outside the [ 0...1 [ x [ 0...1 [ rectangle will be silently ignored.
mipMap The miplevel to evict. Mips are numbered from 0 (= full resolution) to n (= lowest resolution) where n is the mipmap level what is a single tile in size. Invalid mips are silently ignored.
numMips The number of miplevels starting from 'mipMap' to evict. Invalid mips are silently ignored.

Description

Evict the data in the specified rectangle causing it to be procedurally re-generated. The data will become unavailable immediately causing lower resolution fallback textures to be used in the mean time. Use this method to immediately free up memory for other VT tiles when data will not be needed in the near future.

Did you find this page useful? Please give it a rating: