Click or drag to resize

EditorAPIRegisterEditorAction Method

Register an editor action. Use this method for the code which not referencing to NeoAxis.Core.Editor.dll directly. As example when need to call the method from Project.csproj.

Namespace: NeoAxis.Editor
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static IEditorAction RegisterEditorAction(
	string name,
	string description,
	Object imageOrImageHint,
	(string , string ) ribbonText,
	Action<EditorActionGetStateContext> getState,
	Action<EditorActionClickContext> click,
	EditorActionContextMenuType contextMenuSupport = EditorActionContextMenuType.None
)

Parameters

name  String
description  String
imageOrImageHint  Object
Right now only image hint is supported.
ribbonText  ValueTupleString, String
getState  ActionEditorActionGetStateContext
click  ActionEditorActionClickContext
contextMenuSupport  EditorActionContextMenuType  (Optional)

Return Value

IEditorAction
See Also