Class OnDropdownValueChanged
Called when the current value of the dropdown has changed.
Inheritance
OnDropdownValueChanged
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitCategory("Events/GUI")]
[TypeIcon(typeof(Dropdown))]
[UnitOrder(4)]
public sealed class OnDropdownValueChanged : GameObjectEventUnit<int>, IGraphElementWithData, IGraphEventHandler<int>, IGameObjectEventUnit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IGraphEventListener
Properties
MessageListenerType
Declaration
public override Type MessageListenerType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Overrides
hookName
Declaration
protected override string hookName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
index
The index of the newly selected option.
Declaration
[DoNotSerialize]
public ValueOutput index { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
text
The text of the newly selected option.
Declaration
[DoNotSerialize]
public ValueOutput text { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
Methods
AssignArguments(Flow, int)
Declaration
protected override void AssignArguments(Flow flow, int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow | |
| int | index |
Overrides
Definition()
Declaration
protected override void Definition()