Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2023-07-31 21:20:56 +02:00

801 B

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.