public TypeNode() { name = "Type Declaration"; m_TypeBuilder = CreateOutputSlot <GetterSlot <CodeTypeDeclaration> >("type", "Type (dec)").SetGetter(Build); m_Members = CreateInputSlot <EmptySlot <CodeTypeMember> >("members", "Members (mem)"); m_BaseTypes = CreateInputSlot <EmptySlot <CodeTypeReference> >("baseTypes", "Base Types (ref)"); m_Comments = CreateInputSlot <EmptySlot <CodeCommentStatement> >("comments", "Comments (stm)"); m_Members.allowMultipleConnections = true; }
public ScreenMatrixNode() { m_Camera = CreateOutputSlot <GetterSlot <Camera> >("Camera").SetGetter(() => m_CachedCamera); m_ScreenRect = CreateOutputSlot <ValueSlot <Rect> >("ScreenRect").SetValue(new Rect(0, 0, 256, 256)); m_Output = CreateOutputSlot <ValueSlot <Matrix4x4> >("Mat").SetValue(Matrix4x4.identity); }
protected ExpressionNode(string id, string displayName) { m_Output = CreateOutputSlot <GetterSlot <T> >(id, displayName).SetGetter(BuildInternal); }