Skip to content

Commit

Permalink
Update AsUnit.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
S2NX7 authored May 30, 2024
1 parent 985a92b commit ed81f14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Runtime/Fundamentals/Nodes/Utility/AsUnit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class AsUnit : Unit
[PortLabelHidden]
public ValueOutput Result;

public override bool canDefine => AsType != null;

protected override void Definition()
{
Value = ValueInput<object>(nameof(Value));
Expand Down

0 comments on commit ed81f14

Please sign in to comment.