Class OnDropdownValueChanged
Called when the current value of the dropdown has changed.
Inheritance
OnDropdownValueChanged
Inherited Members
Namespace: Unity.VisualScripting
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, IGraphEventListener
Properties
hookName
Declaration
protected override string hookName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Unity.VisualScripting.GameObjectEventUnit<System.Int32>.hookName
index
The index of the newly selected option.
Declaration
[DoNotSerialize]
public ValueOutput index { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
MessageListenerType
Declaration
public override Type MessageListenerType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Unity.VisualScripting.GameObjectEventUnit<System.Int32>.MessageListenerType
text
The text of the newly selected option.
Declaration
[DoNotSerialize]
public ValueOutput text { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
AssignArguments(Flow, Int32)
Declaration
protected override void AssignArguments(Flow flow, int index)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
Int32 | index |
Overrides
Unity.VisualScripting.EventUnit<System.Int32>.AssignArguments(Unity.VisualScripting.Flow, System.Int32)
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.GameObjectEventUnit<System.Int32>.Definition()