docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Custom Render Texture Slice Node

    Description

    Provides the slice index or cubemap face of the current Custom Render Texture. When a Custom Render Texture is a Cubemap, 3D texture, or 2D texture array, Shader Graph issues multiple draw calls to update each slice or face separately. Use this node to get the slice index or cubemap face.

    For more information on Custom Render Textures, refer to the Unity Manual.

    Ports

    Name Direction Type Binding Description
    Texture Cube Face Output Float None The current face of the Custom Render Texture being updated. This value is an integer between 0 and 5 included.
    Texture Depth Slice Output Float None The current slice index of the Custom Render Texture being updated. This value is an integer between 0 and the volume depth of the texture.

    Generated Code Example

    The following example code represents one possible outcome of this node.

    _CustomRenderTextureCubeFace
    
    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)