using UnityEngine;
namespace Unity.VisualScripting
{
///
/// Assigns the value of a variable.
///
[UnitShortTitle("Set Variable")]
public sealed class SetVariable : UnifiedVariableUnit
{
///
/// The entry point to assign the variable.
///
[DoNotSerialize]
[PortLabelHidden]
public ControlInput assign { get; set; }
///
/// The value to assign to the variable.
///
[DoNotSerialize]
[PortLabel("New Value")]
[PortLabelHidden]
public ValueInput input { get; private set; }
///
/// The action to execute once the variable has been assigned.
///
[DoNotSerialize]
[PortLabelHidden]
public ControlOutput assigned { get; set; }
///
/// The value assigned to the variable.
///
[DoNotSerialize]
[PortLabel("Value")]
[PortLabelHidden]
public ValueOutput output { get; private set; }
protected override void Definition()
{
base.Definition();
assign = ControlInput(nameof(assign), Assign);
input = ValueInput