Class PSDImporterEditor
Inspector for PSDImporter
Namespace: UnityEditor.U2D.PSD
Syntax
public class PSDImporterEditor : ScriptedImporterEditor, ITexturePlatformSettingsDataProvider
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 |
---|---|
Boolean | false |
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 |
---|---|
Boolean |
Methods
Apply()
Implementation of AssetImporterEditor.Apply
Declaration
protected override void Apply()
DoesSourceTextureHaveAlpha(Int32)
Implementation of ITexturePlatformSettingsDataProvider.DoesSourceTextureHaveAlpha.
Declaration
public bool DoesSourceTextureHaveAlpha(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | Index to selected target. |
Returns
Type | Description |
---|---|
Boolean | Always returns true since importer deals with source file that has alpha. |
GetImporterSettings(Int32, TextureImporterSettings)
Implementation of ITexturePlatformSettingsDataProvider.GetImporterSettings.
Declaration
public void GetImporterSettings(int i, TextureImporterSettings settings)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | Selected target index. |
TextureImporterSettings | settings | TextureImporterPlatformSettings reference for data retrieval. |
GetPlatformTextureSettings(Int32, String)
ITexturePlatformSettingsDataProvider.GetPlatformTextureSettings.
Declaration
public TextureImporterPlatformSettings GetPlatformTextureSettings(int i, string name)
Parameters
Type | Name | Description |
---|---|---|
Int32 | 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 |
---|---|
Int32 | Returns the number of selected targets. |
HasModified()
Override of AssetImporterEditor.HasModified.
Declaration
public override bool HasModified()
Returns
Type | Description |
---|---|
Boolean | Returns True if has modified data. False otherwise. |
IsSourceTextureHDR(Int32)
Implementation of ITexturePlatformSettingsDataProvider.IsSourceTextureHDR.
Declaration
public bool IsSourceTextureHDR(int i)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | Index to selected target. |
Returns
Type | Description |
---|---|
Boolean | Always returns false since importer does not handle HDR textures. |
OnEnable()
Implementation of AssetImporterEditor.OnEnable
Declaration
public override void OnEnable()
OnInspectorGUI()
Implementation of AssetImporterEditor.OnInspectorGUI
Declaration
public override void OnInspectorGUI()
ResetValues()
Implementation of AssetImporterEditor.ResetValues.
Declaration
protected override void ResetValues()
SetPlatformTextureSettings(Int32, TextureImporterPlatformSettings)
Implementation of ITexturePlatformSettingsDataProvider.SetPlatformTextureSettings.
Declaration
public void SetPlatformTextureSettings(int i, TextureImporterPlatformSettings platformSettings)
Parameters
Type | Name | Description |
---|---|---|
Int32 | i | Selected target index. |
TextureImporterPlatformSettings | platformSettings | TextureImporterPlatformSettings to apply to target. |
ShowPresetSettings()
Implementation of ITexturePlatformSettingsDataProvider.ShowPresetSettings.
Declaration
public bool ShowPresetSettings()
Returns
Type | Description |
---|---|
Boolean | True if valid asset is selected, false otherwiser. |