docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateCameraMaterial

    CreateCameraMaterial(string)

    Create the camera material from the given camera shader name.

    Declaration
    protected Material CreateCameraMaterial(string cameraShaderName)
    Parameters
    Type Name Description
    string cameraShaderName

    The name of the camera shader.

    Returns
    Type Description
    Material

    The created camera material shader.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the shader cannot be found or if a material cannot be created for the shader.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023