First commit
This commit is contained in:
26
Runtime/Models/Nodes/PropertyInputNode.cs
Normal file
26
Runtime/Models/Nodes/PropertyInputNode.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Misaki.GraphView
|
||||
{
|
||||
public class PropertyInputNode : BaseNode
|
||||
{
|
||||
[SerializeReference]
|
||||
private ExposedProperty _property;
|
||||
|
||||
public ExposedProperty Property => _property;
|
||||
|
||||
[NodeOutput]
|
||||
public object value;
|
||||
|
||||
public PropertyInputNode(ExposedProperty property)
|
||||
{
|
||||
_property = property;
|
||||
}
|
||||
|
||||
protected override void OnExecute()
|
||||
{
|
||||
value = _property.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user