Class PromptOperator
Inheritance
PromptOperator
Syntax
[Serializable]
public class PromptOperator : IOperator
Constructors
PromptOperator()
Declaration
Fields
MinimumPromptLength
Declaration
public const int MinimumPromptLength = 1
Field Value
Properties
Hidden
Declaration
public bool Hidden { get; set; }
Property Value
Implements
Label
Human-readable label for the operator.
Declaration
public string Label { get; }
Property Value
Implements
OperatorName
Declaration
public string OperatorName { get; }
Property Value
Implements
Methods
Clone()
Declaration
Returns
Type |
Description |
IOperator |
The cloned operator.
|
Implements
Enable(Boolean)
Sets the enabled state of the operator.
Declaration
public void Enable(bool enable)
Parameters
Type |
Name |
Description |
Boolean |
enable |
The new state to set.
|
Implements
Enabled()
Gets the enabled state of the operator.
Declaration
Returns
Type |
Description |
Boolean |
The enabled state.
|
Implements
GetCanvasView()
Declaration
public VisualElement GetCanvasView()
Returns
Implements
GetOperatorData()
Declaration
public OperatorData GetOperatorData()
Returns
Implements
GetOperatorView(Model)
Declaration
public VisualElement GetOperatorView(Model model)
Parameters
Type |
Name |
Description |
Model |
model |
|
Returns
Implements
GetPrompt()
Gets the prompt for this operator.
Declaration
public string GetPrompt()
Returns
Type |
Description |
String |
The operator's prompt.
|
GetSettingsView()
Get the settings view for this operator.
Declaration
public VisualElement GetSettingsView()
Returns
Type |
Description |
VisualElement |
UI for the operator. Set to Null if the operator should not be displayed in the settings view. Disable the returned VisualElement if you want it to be displayed but not usable.
|
Implements
IsPromptValid()
Declaration
public bool IsPromptValid()
Returns
IsSavable()
Declaration
Returns
Implements
RegisterToEvents(Model)
Registers the operator to the model events.
Declaration
public void RegisterToEvents(Model model)
Parameters
Type |
Name |
Description |
Model |
model |
|
Implements
SetOperatorData(OperatorData)
Declaration
public void SetOperatorData(OperatorData data)
Parameters
Implements
UnregisterFromEvents(Model)
Unregisters the operator from the model events.
Declaration
public void UnregisterFromEvents(Model model)
Parameters
Type |
Name |
Description |
Model |
model |
|
Implements