StreamingController
A StreamingController controls the streaming settings for an individual camera location.
Read time 6 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.StreamingModule
- Inherits from: Behaviour
[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 |
|---|---|
| streamingMipmapBias | Offset 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 |
|---|---|
| CancelPreloading | Abort preloading. |
| IsPreloading | Used to find out whether the StreamingController is currently preloading texture mipmaps. |
| SetPreloading | Initiate preloading of streaming data for this camera. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |