コード例 #1
0
ファイル: TypeNode.cs プロジェクト: wbskyboy/Code-Node-Editor
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 protected ExpressionNode(string id, string displayName)
 {
     m_Output = CreateOutputSlot <GetterSlot <T> >(id, displayName).SetGetter(BuildInternal);
 }