|
|
|
|
|
|
|
|
|
|
namespace UnityEngine.MaterialGraph |
|
|
|
{ |
|
|
|
[Title("Math/Advanced/AddMultiple")] |
|
|
|
[Title("Math/Advanced/Adder")] |
|
|
|
public class AddManyNode : FunctionNInNOut, IGeneratesFunction |
|
|
|
{ |
|
|
|
int m_nodeInputCount = 2; |
|
|
|
|
|
|
|
|
|
|
public AddManyNode() |
|
|
|
{ |
|
|
|
name = "AddMany"; |
|
|
|
name = "Adder"; |
|
|
|
for(int i = 0; i < m_nodeInputCount; ++i) |
|
|
|
{ |
|
|
|
AddInputSlot(); |
|
|
|
|
|
|
|
|
|
|
protected override string GetFunctionName() |
|
|
|
{ |
|
|
|
return "unity_AddMultiple"; |
|
|
|
return "unity_Adder"; |
|
|
|
} |
|
|
|
|
|
|
|
string GetSumOfAllInputs() |
|
|
|