docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetMaterialUserData

    SetMaterialUserData(uint, uint, IntPtr)

    Set or replace a userdata stored on an material

    Declaration
    public void SetMaterialUserData(uint userDataId, uint material, IntPtr userData)
    Parameters
    Type Name Description
    uint userDataId

    UserData identifier provided by subscribeToMaterialUserData

    uint material

    Material that will store the user data

    IntPtr userData

    User data to store in the given material

    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)