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 Mesh Index Count Get the number of indices in a mesh.
    Get Mesh Triangle Count Get the number of triangles in a mesh.
    Get Mesh Vertex Count Get the number of vertices in a mesh.
    Get Skinned Mesh Index Count Get the number of indices in a skinned mesh.
    Get Skinned Mesh Triangle Count Get the number of triangles in a skinned mesh.
    Get Skinned Mesh Vertex Count Get the number of vertices in a skinned mesh.
    Get Skinned Mesh Local Root Transform Get the transform of a root bone in a skinned mesh, relative to the Skinned Mesh Renderer.
    Get Skinned Mesh World Root Transform Get the transform of a root bone in a skinned mesh, relative to the world.
    Get Texture Dimensions Get the dimensions of a texture.
    Load CameraBuffer Sample the camera buffer.
    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 Graphics 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 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.
    Sample Attribute Map Sample an attribute map from a Point Cache.

    Additional resources

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