Class PSDImporter
ScriptedImporter to import Photoshop files
Inherited Members
UnityEditor.AssetImporter.AddRemap(UnityEditor.AssetImporter.SourceAssetIdentifier, UnityEngine.Object)
UnityEditor.AssetImporter.RemoveRemap(UnityEditor.AssetImporter.SourceAssetIdentifier)
UnityEditor.AssetImporter.assetTimeStamp
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEditor.U2D.PSD
Syntax
[ScriptedImporter(4, "psb")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.psdimporter@latest")]
[MovedFrom("UnityEditor.Experimental.AssetImporters")]
public class PSDImporter : ScriptedImporter, ISpriteEditorDataProvider
Methods
OnImportAsset(AssetImportContext)
Implementation of ScriptedImporter.OnImportAsset
Declaration
public override void OnImportAsset(AssetImportContext ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetImportContext | ctx | This argument contains all the contextual information needed to process the import event and is also used by the custom importer to store the resulting Unity Asset. |
Overrides
Explicit Interface Implementations
ISpriteEditorDataProvider.Apply()
Declaration
void ISpriteEditorDataProvider.Apply()
Implements
ISpriteEditorDataProvider.GetDataProvider<T>()
Declaration
T ISpriteEditorDataProvider.GetDataProvider<T>()
where T : class
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
Implements
ISpriteEditorDataProvider.GetSpriteRects()
Declaration
SpriteRect[] ISpriteEditorDataProvider.GetSpriteRects()
Returns
| Type | Description |
|---|---|
| SpriteRect[] |
Implements
ISpriteEditorDataProvider.HasDataProvider(Type)
Declaration
bool ISpriteEditorDataProvider.HasDataProvider(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type |
Returns
| Type | Description |
|---|---|
| Boolean |
Implements
ISpriteEditorDataProvider.InitSpriteEditorDataProvider()
Declaration
void ISpriteEditorDataProvider.InitSpriteEditorDataProvider()
Implements
ISpriteEditorDataProvider.pixelsPerUnit
Declaration
float ISpriteEditorDataProvider.pixelsPerUnit { get; }
Returns
| Type | Description |
|---|---|
| Single |
Implements
ISpriteEditorDataProvider.SetSpriteRects(SpriteRect[])
Declaration
void ISpriteEditorDataProvider.SetSpriteRects(SpriteRect[] spriteRects)
Parameters
| Type | Name | Description |
|---|---|---|
| SpriteRect[] | spriteRects |