docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Sampling Operators

    Fetch data from buffers, meshes, and textures.

    Page Description
    Buffer Count Get the number of elements in a GraphicsBuffer.
    Get Texture Dimensions Get the dimensions of a texture.
    Load CameraBuffer Get a CameraBuffer texel value for specified coordinates.
    Mesh Index Count Get the number of indices in a mesh.
    Mesh Vertex Count Get the number of vertices in a mesh.
    Load Texture2D Sample a 2D texture.
    Load Texture2DArray Sample a 2D texture array.
    Load Texture3D Sample a 3D texture.
    Position (Depth) Sample the depth buffer of the camera.
    Sample Buffer Fetch and sample a structured GraphicsBuffer.
    Sample CameraBuffer Sample the camera buffer using pixel dimensions and UVs.
    Sample Curve Sample a curve.
    Sample Gradient Sample a gradient.
    Sample Mesh Get the vertex data of a mesh.
    Sample Mesh Index Get the index buffer data of geometry.
    Sample Skinned Mesh Get the vertex data of a skinned mesh.
    Sample Skinned Mesh Renderer Index Get the index data of a skinned mesh renderer.
    Sample Signed Distance Field Get the distance field stored in a 3D texture.
    Sample Texture2D Sample a 2D texture using UV coordinates and mipmap level.
    Sample Texture2DArray Sample a 2D texture array using a slice, UV coordinates, and mipmap level.
    Sample Texture3D Sample a 3D texture using UV coordinates and mipmap level.
    Sample TextureCube Sample a cubemap texture using a direction vector and mipmap level.
    Sample TextureCubeArray Sample a cubemap array using a slice, direction vector, and mipmap level.
    Skinned Mesh Index Count Get the number of indices in a skinned mesh.
    Skinned Mesh Vertex Count Get the number of vertices in a skinned mesh.

    Additional resources

    • Noise Operators
    • Wave Operators
    • Random Number
    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)