docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ExportTextureTransform

    ExportTextureTransform(TextureInfoBase, Material, int, IGltfWritable)

    Calculates a texture's transform and adds a KHR_texture_transform glTF extension, if required

    Declaration
    protected static void ExportTextureTransform(TextureInfoBase def, Material mat, int texPropertyId, IGltfWritable gltf)
    Parameters
    Type Name Description
    TextureInfoBase def

    glTF TextureInfo to edit

    Material mat

    Source Material

    int texPropertyId

    Texture property to fetch transformation from

    IGltfWritable gltf

    Context glTF to export to (for registering extension usage)

    In This Article
    Back to top
    Copyright © 2024 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)