Version: 2020.1
LanguageEnglish
  • C#

Procedural.TextureStackBase<T0>.RequestRegion

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 RequestRegion(Rect r, int mipMap, int numMips);

Parameters

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

Description

Make a rectangle in UV space resident for a given stack.

The system will do it’s best to make this rectangle resident at the requested resolution as fast as possible but due to time and memory constraints this data may take a while to become resident or even never become resident. This function should be called regularly (preferably every frame) to indicate the continued interest in this data. When this function is no longer called the requested area may be evicted from memory or only be available at a lower resolution.

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