docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PSDImporterEditor

    Inspector for PSDImporter

    Inheritance
    object
    Object
    ScriptableObject
    Editor
    AssetImporterEditor
    ScriptedImporterEditor
    PSDImporterEditor
    Inherited Members
    AssetImporterEditor.InitializeExtraDataInstance(Object, int)
    AssetImporterEditor.DrawPreview(Rect)
    AssetImporterEditor.OnDisable()
    AssetImporterEditor.Awake()
    AssetImporterEditor.CanApply()
    AssetImporterEditor.ApplyAndImport()
    AssetImporterEditor.RevertButton()
    AssetImporterEditor.ApplyButton()
    AssetImporterEditor.OnApplyRevertGUI()
    AssetImporterEditor.ApplyRevertGUI()
    AssetImporterEditor.assetTargets
    AssetImporterEditor.assetTarget
    AssetImporterEditor.assetSerializedObject
    AssetImporterEditor.extraDataTargets
    AssetImporterEditor.extraDataTarget
    AssetImporterEditor.extraDataSerializedObject
    AssetImporterEditor.needsApplyRevert
    AssetImporterEditor.extraDataType
    AssetImporterEditor.useAssetDrawPreview
    Editor.CreateEditorWithContext(Object[], Object, Type)
    Editor.CreateEditorWithContext(Object[], Object)
    Editor.CreateCachedEditorWithContext(Object, Object, Type, ref Editor)
    Editor.CreateCachedEditorWithContext(Object[], Object, Type, ref Editor)
    Editor.CreateCachedEditor(Object, Type, ref Editor)
    Editor.CreateCachedEditor(Object[], Type, ref Editor)
    Editor.CreateEditor(Object)
    Editor.CreateEditor(Object, Type)
    Editor.CreateEditor(Object[])
    Editor.CreateEditor(Object[], Type)
    Editor.DrawPropertiesExcluding(SerializedObject, params string[])
    Editor.DrawDefaultInspector()
    Editor.Repaint()
    Editor.CreateInspectorGUI()
    Editor.DrawHeader()
    Editor.OnHeaderGUI()
    Editor.ShouldHideOpenButton()
    Editor.DrawFoldoutInspector(Object, ref Editor)
    Editor.HasPreviewGUI()
    Editor.GetPreviewTitle()
    Editor.RenderStaticPreview(string, Object[], int, int)
    Editor.OnPreviewGUI(Rect, GUIStyle)
    Editor.OnInteractivePreviewGUI(Rect, GUIStyle)
    Editor.OnPreviewSettings()
    Editor.GetInfoString()
    Editor.ReloadPreviewInstances()
    Editor.UseDefaultMargins()
    Editor.MoveNextTarget()
    Editor.ResetTarget()
    Editor.target
    Editor.targets
    Editor.serializedObject
    Editor.finishedDefaultHeaderGUI
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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
    AssetImporterEditor.showImportedObject

    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
    AssetImporterEditor.Apply()

    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
    AssetImporterEditor.HasModified()

    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
    AssetImporterEditor.OnEnable()

    OnInspectorGUI()

    Implementation of AssetImporterEditor.OnInspectorGUI

    Declaration
    public override void OnInspectorGUI()
    Overrides
    AssetImporterEditor.OnInspectorGUI()

    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
    Editor.RequiresConstantRepaint()

    ResetValues()

    Implementation of AssetImporterEditor.ResetValues.

    Declaration
    protected override void ResetValues()
    Overrides
    AssetImporterEditor.ResetValues()

    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)