Files
com.misaki.graph-view/Runtime/Models/Nodes/PropertyInput.cs
Misaki c853994bf5 Added IExecutable and ISlotContainer interface.
Changed SlotContainerNode to ExecutableNode
2024-11-05 02:25:15 +09:00

28 lines
579 B
C#

using System;
using UnityEngine;
namespace Misaki.GraphView
{
public class PropertyInput : ExecutableNode
{
[SerializeReference]
private ExposedProperty _property;
public ExposedProperty Property => _property;
[NodeOutput]
public object value;
public PropertyInput(ExposedProperty property)
{
_property = property;
}
protected override bool OnExecute()
{
value = _property.Value;
return true;
}
}
}