docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IStreamingMaterial

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Cloud.DataStreaming.Runtime
    Assembly: Unity.Cloud.DataStreaming.Runtime.dll
    Syntax
    public interface IStreamingMaterial : IDisposable

    Properties

    UnityMaterial

    Created Material after the renderer instantiation was executed via the corresponding IStreamingRenderer.

    Declaration
    Material UnityMaterial { get; }
    Property Value
    Type Description
    Material

    Methods

    SetAlbedoColor(Color)

    Set the color to be used for the albedo channel.

    Declaration
    void SetAlbedoColor(Color color)
    Parameters
    Type Name Description
    Color color

    Set the Color value.

    SetAlbedoTexture(Texture, Vector4, float)

    Set the texture to be used for the albedo channel.

    Declaration
    void SetAlbedoTexture(Texture texture, Vector4 textureSt, float textureRotation)
    Parameters
    Type Name Description
    Texture texture

    Apply this texture to the material.

    Vector4 textureSt

    Scale / Transform the texture where x/y represent the scale and z/w represent the position.

    float textureRotation

    Rotation of the texture, in radians.

    SetAlphaCutoff(float)

    Set the alpha cutoff level of the material.

    Declaration
    void SetAlphaCutoff(float alphaCutoff)
    Parameters
    Type Name Description
    float alphaCutoff

    Threshold of the alpha cutoff to be applied.

    SetClearcoatFactor(float)

    Set the clear-coat factor of the material.

    Declaration
    void SetClearcoatFactor(float factor)
    Parameters
    Type Name Description
    float factor

    Apply this level for the clear-coat part of the material.

    SetClearcoatNormalTexture(Texture, Vector4, float)

    Set the texture to be used for the clear-coat normal channel.

    Declaration
    void SetClearcoatNormalTexture(Texture texture, Vector4 textureSt, float textureRotation)
    Parameters
    Type Name Description
    Texture texture

    Apply this texture to the material.

    Vector4 textureSt

    Scale / Transform the texture where x/y represent the scale and z/w represent the position.

    float textureRotation

    Rotation of the texture, in radians.

    SetClearcoatRoughnessFactor(float)

    Set the clear-coat roughness level of the material.

    Declaration
    void SetClearcoatRoughnessFactor(float factor)
    Parameters
    Type Name Description
    float factor

    Apply this texture to the material.

    SetClearcoatRoughnessTexture(Texture, Vector4, float)

    Set the texture to be used for the clear-coat roughness channel.

    Declaration
    void SetClearcoatRoughnessTexture(Texture texture, Vector4 textureSt, float textureRotation)
    Parameters
    Type Name Description
    Texture texture

    Apply this texture to the material.

    Vector4 textureSt

    Scale / Transform the texture where x/y represent the scale and z/w represent the position.

    float textureRotation

    Rotation of the texture, in radians.

    SetClearcoatTexture(Texture, Vector4, float)

    Set the texture to be used for the clear-coat color channel.

    Declaration
    void SetClearcoatTexture(Texture texture, Vector4 textureSt, float textureRotation)
    Parameters
    Type Name Description
    Texture texture

    Apply this texture to the material.

    Vector4 textureSt

    Scale / Transform the texture where x/y represent the scale and z/w represent the position.

    float textureRotation

    Rotation of the texture, in radians.

    SetEmissiveFactor(Color)

    Sets the emissive factor of the material.

    Declaration
    void SetEmissiveFactor(Color factor)
    Parameters
    Type Name Description
    Color factor

    Emissive factor to be applied.

    SetEmissiveTexture(Texture, Vector4, float)

    Set the texture to be used for the emissive channels.

    Declaration
    void SetEmissiveTexture(Texture texture, Vector4 textureSt, float textureRotation)
    Parameters
    Type Name Description
    Texture texture

    Apply this texture to the material.

    Vector4 textureSt

    Scale / Transform the texture where x/y represent the scale and z/w represent the position.

    float textureRotation

    Rotation of the texture, in radians.

    SetEnableAlphaClip(bool)

    Set if the material alpha clip is enabled.

    Declaration
    void SetEnableAlphaClip(bool enableAlphaClip)
    Parameters
    Type Name Description
    bool enableAlphaClip

    true to enable alpha clipping.

    SetEnableDoubleSided(bool)

    Set if the material is rendered on both sides for each polygons.

    Declaration
    void SetEnableDoubleSided(bool enableDoubleSided)
    Parameters
    Type Name Description
    bool enableDoubleSided

    true to enable double-sided rendering.

    SetMaskTexture(Texture)

    Set the texture to be used for the mask channel.

    Declaration
    void SetMaskTexture(Texture texture)
    Parameters
    Type Name Description
    Texture texture

    Apply this texture to the material.

    SetMaskTextureCoord(float)

    Set the mask texture coordinates of the material.

    Declaration
    void SetMaskTextureCoord(float textureCoord)
    Parameters
    Type Name Description
    float textureCoord

    Texture coordinate to be applied.

    SetMetallicFactor(float)

    Set the metallic factor of the material.

    Declaration
    void SetMetallicFactor(float factor)
    Parameters
    Type Name Description
    float factor

    Metallic factor to be applied.

    SetMetallicRoughnessTexture(Texture, Vector4, float)

    Set the texture to be used for the metallic and roughness channels.

    Declaration
    void SetMetallicRoughnessTexture(Texture texture, Vector4 textureSt, float textureRotation)
    Parameters
    Type Name Description
    Texture texture

    Apply this texture to the material.

    Vector4 textureSt

    Scale / Transform the texture where x/y represent the scale and z/w represent the position.

    float textureRotation

    Rotation of the texture, in radians.

    SetNormalScale(float)

    Set the normal scale of the material.

    Declaration
    void SetNormalScale(float scale)
    Parameters
    Type Name Description
    float scale

    Normal scale to be applied.

    SetNormalTexture(Texture, Vector4, float)

    Set the texture to be used for the normal channel.

    Declaration
    void SetNormalTexture(Texture texture, Vector4 textureSt, float textureRotation)
    Parameters
    Type Name Description
    Texture texture

    Apply this texture to the material.

    Vector4 textureSt

    Scale / Transform the texture where x/y represent the scale and z/w represent the position.

    float textureRotation

    Rotation of the texture, in radians.

    SetOcclusionStrength(float)

    Sets the occlusion strength of the material.

    Declaration
    void SetOcclusionStrength(float strength)
    Parameters
    Type Name Description
    float strength

    The occlusion strength. The value should be in the range [0, 1].

    SetOcclusionTexture(Texture, Vector4, float)

    Set the texture to be used for the emissive channels.

    Declaration
    void SetOcclusionTexture(Texture texture, Vector4 textureSt, float textureRotation)
    Parameters
    Type Name Description
    Texture texture

    Apply this texture to the material.

    Vector4 textureSt

    Scale / Transform the texture where x/y represent the scale and z/w represent the position.

    float textureRotation

    Rotation of the texture, in radians.

    SetRoughnessFactor(float)

    Set the roughness factor of the material.

    Declaration
    void SetRoughnessFactor(float factor)
    Parameters
    Type Name Description
    float factor

    Roughness factor to be applied.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)