docs.unity3d.com
    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.

    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