Class PSDImporterEditor
Inspector for PSDImporter
Inheritance
Inherited Members
Namespace: UnityEditor.U2D.PSD
Assembly: Unity.2D.Psdimporter.Editor.dll
Syntax
[CustomEditor(typeof(PSDImporter))]
[MovedFrom("UnityEditor.Experimental.AssetImporters")]
public class PSDImporterEditor : ScriptedImporterEditor
Properties
showImportedObject
Override of AssetImporterEditor.showImportedObject The property always returns false so that imported objects does not show up in the Inspector.
Declaration
public override bool showImportedObject { get; }
Property Value
| Type | Description |
|---|---|
| bool | false |
Overrides
spriteImportMode
Implementation of ITexturePlatformSettingsDataProvider.spriteImportMode.
Declaration
public SpriteImportMode spriteImportMode { get; }
Property Value
| Type | Description |
|---|---|
| SpriteImportMode |
textureType
Implementation of ITexturePlatformSettingsDataProvider.textureType.
Declaration
public TextureImporterType textureType { get; }
Property Value
| Type | Description |
|---|---|
| TextureImporterType |
textureTypeHasMultipleDifferentValues
Implementation of ITexturePlatformSettingsDataProvider.textureTypeHasMultipleDifferentValues.
Declaration
public bool textureTypeHasMultipleDifferentValues { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Apply()
Implementation of AssetImporterEditor.Apply
Declaration
protected override void Apply()
Overrides
DoesSourceTextureHaveAlpha(int)
Implementation of ITexturePlatformSettingsDataProvider.DoesSourceTextureHaveAlpha.
Declaration
public bool DoesSourceTextureHaveAlpha(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i | Index to selected target. |
Returns
| Type | Description |
|---|---|
| bool | Always returns true since importer deals with source file that has alpha. |
GetImporterSettings(int, TextureImporterSettings)
Implementation of ITexturePlatformSettingsDataProvider.GetImporterSettings.
Declaration
public void GetImporterSettings(int i, TextureImporterSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i | Selected target index. |
| TextureImporterSettings | settings | TextureImporterPlatformSettings reference for data retrieval. |
GetPlatformTextureSettings(int, string)
ITexturePlatformSettingsDataProvider.GetPlatformTextureSettings.
Declaration
public TextureImporterPlatformSettings GetPlatformTextureSettings(int i, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i | Selected target index. |
| string | name | Name of the platform. |
Returns
| Type | Description |
|---|---|
| TextureImporterPlatformSettings | TextureImporterPlatformSettings for the given platform name and selected target index. |
GetTargetCount()
Implementation of ITexturePlatformSettingsDataProvider.GetTargetCount.
Declaration
public int GetTargetCount()
Returns
| Type | Description |
|---|---|
| int | Returns the number of selected targets. |
HasModified()
Override of AssetImporterEditor.HasModified.
Declaration
public override bool HasModified()
Returns
| Type | Description |
|---|---|
| bool | Returns True if has modified data. False otherwise. |
Overrides
IsSourceTextureHDR(int)
Implementation of ITexturePlatformSettingsDataProvider.IsSourceTextureHDR.
Declaration
public bool IsSourceTextureHDR(int i)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i | Index to selected target. |
Returns
| Type | Description |
|---|---|
| bool | Always returns false since importer does not handle HDR textures. |
OnEnable()
Implementation of AssetImporterEditor.OnEnable
Declaration
public override void OnEnable()
Overrides
OnInspectorGUI()
Implementation of AssetImporterEditor.OnInspectorGUI
Declaration
public override void OnInspectorGUI()
Overrides
RequiresConstantRepaint()
Override from AssetImporterEditor.RequiresConstantRepaint
Declaration
public override bool RequiresConstantRepaint()
Returns
| Type | Description |
|---|---|
| bool | Returns true when in Layer Management tab for UI feedback update, false otherwise. |
Overrides
ResetValues()
Implementation of AssetImporterEditor.ResetValues.
Declaration
protected override void ResetValues()
Overrides
SetPlatformTextureSettings(int, TextureImporterPlatformSettings)
Implementation of ITexturePlatformSettingsDataProvider.SetPlatformTextureSettings.
Declaration
public void SetPlatformTextureSettings(int i, TextureImporterPlatformSettings platformSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i | Selected target index. |
| TextureImporterPlatformSettings | platformSettings | TextureImporterPlatformSettings to apply to target. |
ShowPresetSettings()
Implementation of ITexturePlatformSettingsDataProvider.ShowPresetSettings.
Declaration
public bool ShowPresetSettings()
Returns
| Type | Description |
|---|---|
| bool | True if valid asset is selected, false otherwiser. |