Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StreamingController

A StreamingController controls the streaming settings for an individual camera location.
Read time 6 minutesLast updated 2 days ago

Definition

[RequireComponent(typeof(Camera))]public class StreamingController : Behaviour

Remarks

The StreamingController component is used to control texture streaming settings for a camera location. This component supports the preloading of textures in advance of a Camera becoming enabled. See StreamingController.SetPreloading
The _streamingMipmapsActive must be enabled and active for this feature to work.
The Camera is not considered for texture streaming when this component is disabled. When this component is enabled the Camera is considered for texture streaming if the Camera is enabled or the StreamingController is in the preloading state.
A mipmap bias can be applied for texture streaming calculations. See _streamingMipmapBias for details.
Additional Resources: camera component

Properties

Property

Description

streamingMipmapBiasOffset applied to the mipmap level chosen by the texture streaming system for any textures visible from this camera. This Offset can take either a positive or negative value.

Methods

Method

Description

CancelPreloadingAbort preloading.
IsPreloadingUsed to find out whether the StreamingController is currently preloading texture mipmaps.
SetPreloadingInitiate preloading of streaming data for this camera.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.