docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    PSD File Importer Override

    It is possible to use PSDImporter to import files with 'psd' extensions. The following are the sample scripts that you can use.

    Example SetImporterOverride scripts

    PSDImporterOverride.cs

    using UnityEngine;
    
    namespace UnityEditor.U2D.PSD
    {
        [AssetImporters.ScriptedImporter(1, new string[0],new[] {"psd"} )]
        internal class PSDImporterOverride : PSDImporter
        {
        }
    }
    
    

    PSDImporterOverrideEditor.cs

    namespace UnityEditor.U2D.PSD
    {
        [CustomEditor(typeof(UnityEditor.U2D.PSD.PSDImporterOverride))]
        internal class PSDImporterOverrideEditor : PSDImporterEditor
        {
        }
    
    }
    

    After implementing the above scripts, you will be able to switch the importer from a dropdown list in the Inspector.

    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)