Class StreamingImageSequenceRenderer
A component that stores the output of StreamingImageSequence
Inherited Members
Namespace: Unity.StreamingImageSequence
Syntax
[ExecuteAlways]
public sealed class StreamingImageSequenceRenderer : MonoBehaviour
Methods
GetMaterialIndexToUpdate()
Get the index of the material to be updated by StreamingImageSequence
Declaration
public int GetMaterialIndexToUpdate()
Returns
Type | Description |
---|---|
Int32 |
GetTargetTexture()
Get the target render texture
Declaration
public RenderTexture GetTargetTexture()
Returns
Type | Description |
---|---|
RenderTexture | The target RenderTexture |
SetMaterialIndexToUpdate(Int32)
Set the index of the material to be updated by StreamingImageSequence. No material will be updated if index is less than 0. Only used if the gameObject has MeshRenderer or SkinnedMeshRenderer
Declaration
public void SetMaterialIndexToUpdate(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
SetTargetTexture(RenderTexture)
Sets StreamingImageSequence to copy its internal texture into a target RenderTexture.
Declaration
public void SetTargetTexture(RenderTexture tex)
Parameters
Type | Name | Description |
---|---|---|
RenderTexture | tex | the target RenderTexture for copying |