Experimental: this API is experimental and might be changed or removed in the future.

ScriptedImporterEditor

class in UnityEditor.Experimental.AssetImporters

/

Inherits from:Experimental.AssetImporters.AssetImporterEditor

Switch to Manual

Description

Default editor for source assets handled by Scripted Importers.

Inherited members

Variables

extraDataSerializedObjectA SerializedObject that represents the extraDataTarget or the extraDataTargets of the AssetImporterEditor.
extraDataTargetThe extra data object associated with the Editor.target.
extraDataTargetsAn array of objects associated with each Editor.targets.
extraDataTypeOverride this property to return a type that inherits from ScriptableObject. This makes the AssetImporterEditor aware of serialized data outside of the Importer.
needsApplyRevertWhether the ApplyRevertGUI method is required to draw in the Inspector.
showImportedObjectShould imported object be shown as a separate editor?
useAssetDrawPreviewDetermines if the asset preview is handled by the AssetEditor or the Importer DrawPreview
serializedObject SerializedObject, представляющий инспектируемый объект или объекты.
targetИнспектируемый объект.
targetsМассив всех инспектируемых объектов.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public Functions

HasModifiedDetermine if the import settings have been modified.
OnDisableThis function is called when the editor object goes out of scope.
OnEnableThis function is called when the object is loaded.
OnInspectorGUIOverride this method to create your own Inpsector GUI for a ScriptedImporter.
CreateInspectorGUIImplement this method to make a custom UIElements inspector.
DrawDefaultInspectorDraws the built-in inspector.
DrawHeaderВызывайте эту функцию для отрисовки заголовка редактора.
DrawPreviewЭто первая входная точка для рисования области предпросмотра.
GetInfoStringРеализуйте этот метод, чтобы показать информацию об ассете поверх предпросмотра ассета.
GetPreviewTitleПереопределите этот метод, если вы хотите изменить название области предпросмотра (preview).
HasPreviewGUIПереопределите этот метод в подклассах, если вы реализуете OnPreviewGUI.
OnInspectorGUIРеализуйте эту функцию для создания собственного инспектора.
OnInteractivePreviewGUIРеализуйте, чтобы создать ваш собственный интерактивный предпросмотр. Интерактивные предпросмотры используются в области предпросмотра окна Inspector и при выборе объекта.
OnPreviewGUIImplement to create your own custom preview for the preview area of the inspector, the headers of the primary editor, and the object selector.
OnPreviewSettingsПереопределите этот метод, если вы хотите показать пользовательские элементы в заголовке предпросмотра.
RenderStaticPreviewOverride this method if you want to render a static preview.
RepaintRedraw any inspectors that shows this editor.
RequiresConstantRepaintChecks if this editor requires constant repaints in its current state.
UseDefaultMarginsПереопределите этот метод в подклассах и возвращайте false, если вы не хотите отступы по умолчанию.
GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the object.

Protected Functions

ApplySaves any changes from the Editor's control into the asset's import settings object.
ApplyAndImportSaves the changes from the editor UI to the settings object and imports the asset.
ApplyButtonImplements the 'Apply' button of the inspector.
ApplyRevertGUIAdd's the 'Apply' and 'Revert' buttons to the editor.
AwakeThis function is called when the Editor script is started.
InitializeExtraDataInstanceThis method is called during the initialization process of the Editor, after Awake and before OnEnable.
OnApplyRevertGUIProcess the 'Apply' and 'Revert' buttons.
ResetValuesReset the import settings to their last saved values.
RevertButtonImplements the 'Revert' button of the inspector.
ShouldHideOpenButtonReturns the visibility setting of the "open" button in the Inspector.

Static Functions

CreateCachedEditorOn return previousEditor is an editor for targetObject or targetObjects. The function either returns if the editor is already tracking the objects, or destroys the previous editor and creates a new one.
CreateCachedEditorWithContextCreates a cached editor using a context object.
CreateEditorСоздает пользовательский редактор для obj или objects.
CreateEditorWithContextMake a custom editor for targetObject or targetObjects with a context object.
DrawFoldoutInspectorDraws the inspector GUI with a foldout header for target.
DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeGets a list of all loaded objects of Type type.
InstantiateClones the object original and returns the clone.
CreateInstanceCreates an instance of a scriptable object.

Operators

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.

Messages

OnSceneGUIEnables the Editor to handle an event in the Scene view.
AwakeThis function is called when the ScriptableObject script is started.
OnDestroyThis function is called when the scriptable object will be destroyed.
OnDisableThis function is called when the scriptable object goes out of scope.
OnEnableThis function is called when the object is loaded.
OnValidateThis function is called when the script is loaded or a value is changed in the Inspector (Called in the editor only).
ResetReset to default values.

Events

finishedDefaultHeaderGUIAn event raised while drawing the header of the Inspector window, after the default header items have been drawn.