docs.unity3d.com
    Show / Hide Table of Contents

    Custom Icons

    Every icon provided by App UI is available as a PNG file. They are all referenced inside USS files, which are used to load the icons.

    Adding Custom Icons

    To add a custom icon, you need to add a PNG file to your project and reference it in a USS file.

    Here's an example of how to add a custom icon named home:

    .appui-icon--home {
        --unity-image: url("path/to/home.png");
    }
    
    Important

    Your USS class name must start with appui-icon-- followed by the name of your icon in order to work with the Icon UI component.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023