Version: 2023.1
Language : English
The Mipmap Streaming system API
Render Texture

Streaming Controller component

Switch to Scripting

The Streaming Controller component is part of the Mipmap Streaming system.

Use the Streaming Controller component to enable Mipmap Streaming for a Camera in your scene when the the Add All Cameras setting in Quality settings (Edit > Project SettingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your project behave. More info
See in Glossary
> Quality) is disabled. You can also use it to change the mip bias setting per-Camera.

This component takes the location and CameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
See in Glossary
settings (such as Field of View) directly from the Camera component.

If the Camera is disabled, Unity does not calculate Mipmap Streaming for it, unless the Streaming Controller is enabled and in the preloading state. When the Streaming Controller and associated Camera are enabled, or if the Streaming Controller is in a preloading state, then Unity calculates Mipmap Streaming for this Camera. If the Streaming Controller is disabled, then Unity does not calculate Mipmap Streaming for this Camera.

The Mipmap Streaming Controller component
The Mipmap Streaming Controller component
Property Description
Mip Map Bias Use this setting to force Unity to load a smaller or larger mipmap level than the one that the Mipmap Streaming system has automatically chosen. Enter a value in this field to set the offset that Unity applies to this mipmap level. Unity adds this offset to all the mipmaps assigned to Textures that are in the Camera’s view.

For example, if Unity loads a texture at mip 1 and the Mip Map Bias is set to 1, this means it will load mip 2 instead.

To control this setting using the API, use StreamingController.streamingMipmapBias.

StreamingController

The Mipmap Streaming system API
Render Texture