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")]
[CanEditMultipleObjects]
public class PSDImporterEditor : ScriptedImporterEditorProperties
extraDataType
Override for AssetImporter.extraDataType
Declaration
protected override Type extraDataType { get; }Property Value
| Type | Description | 
|---|---|
| Type | 
Overrides
platformSettingsArray
The SerializedProperty of an array of TextureImporterPlatformSettings.
Declaration
public SerializedProperty platformSettingsArray { get; }Property Value
| Type | Description | 
|---|---|
| SerializedProperty | 
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
Methods
Apply()
Implementation of AssetImporterEditor.Apply
Declaration
protected override void Apply()Overrides
CreateInspectorGUI()
Implementation of virtual method CreateInspectorGUI.
Declaration
public override VisualElement CreateInspectorGUI()Returns
| Type | Description | 
|---|---|
| VisualElement | VisualElement container for Inspector visual. | 
Overrides
DiscardChanges()
Implementation of AssetImporterEditor.DiscardChanges.
Declaration
public override void DiscardChanges()Overrides
DrawPreview(Rect)
Override from AssetImporterEditor to show custom preview.
Declaration
public override void DrawPreview(Rect r)Parameters
| Type | Name | Description | 
|---|---|---|
| Rect | r | Preview Rect. | 
Overrides
GetBuildTargetName(SerializedProperty)
Get the name property of TextureImporterPlatformSettings from a SerializedProperty.
Declaration
public string GetBuildTargetName(SerializedProperty sp)Parameters
| Type | Name | Description | 
|---|---|---|
| SerializedProperty | sp | The SerializedProperty to retrive data. | 
Returns
| Type | Description | 
|---|---|
| string | The name value in string. | 
HasModified()
Override of AssetImporterEditor.HasModified.
Declaration
public override bool HasModified()Returns
| Type | Description | 
|---|---|
| bool | Returns True if has modified data. False otherwise. | 
Overrides
InitializeExtraDataInstance(Object, int)
Override for AssetImporter.InitializeExtraDataInstance
Declaration
protected override void InitializeExtraDataInstance(Object extraTarget, int targetIndex)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | extraTarget | Target object | 
| int | targetIndex | Target index | 
Overrides
OnDisable()
Implmentation of AssetImporterEditor.OnDisable
Declaration
public override void OnDisable()Overrides
OnEnable()
Implementation of AssetImporterEditor.OnEnable
Declaration
public override void OnEnable()Overrides
OnPreviewSettings()
Override from AssetImporterEditor to show preview settings.
Declaration
public override void OnPreviewSettings()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
[Obsolete("UnityUpgradeable () -> DiscardChanges")]
protected override void ResetValues()Overrides
SaveChanges()
Implementation of AssetImporterEditor.SaveChanges.
Declaration
public override void SaveChanges()