Unity3d uses Node Canvas and unity3dcanvas

Source: Internet
Author: User

Unity3d uses Node Canvas and unity3dcanvas
Node Canvas

Node Canvas is a plug-in for the behavior tree. It is a graphical operation mode that simplifies the development logic.

Basic Elements

The principle in the process is that once the returned value isFalseReturns the value up. GenerallyBehaviourTreeOwnerSelectRepeatCycle monitoring. These monitoring usually refers to the condition judgment of each subtree. Common elements are as follows:

Element name Logic Remarks
Action Operation All kinds of operations have been used.
Condition Condition judgment All kinds of judgments, no.
Selector Selector Logic||If the returned result is a real subtree, the execution is stopped and the returned result is true.
Sequencer Sequencer Logic&&Contrary to Selector, if false is returned, false is returned.
Parallel Parallelism Execute the sub-tree at the same time, and the return value is determined by the Policy.
Conditional Condition Node If the condition is not met, False is returned directly without executing the subnode.
Filter Filter Restricted access, for example, only once during initialization
Iterate Iterator For recycling
OverrideAgent Rewrite variable For sub-nodes, the behavior tree-mounted Agent is not used.
Shortcut Key

Here are the node/canvas controls and shortcuts:

  • Right Click on the canvas to add a new node.
  • Click & Drag to pan the node.
  • Middle Click & Drag in the canvas to pan the canvas.
  • Shift + Click & Drag a node to pan it and all of it's children together; panning a branch.
  • Click & Drag from a port over a target node to connect. Right click a connected port to disconnect.
  • Click & Drag from a port into empty canvas space, will show context menu to automaticaly create and connect a new node.
  • Click a connected port or connection itself to select the connection.
  • Delete the selected node or connection with Delete Key, or through the right click context menu.
  • Duplicate a node with Control + D or through the right click context menu.
  • Double Clicking a node will open it's script in the IDE, unless it's a Nested Node in which case it will open the nested tree.
  • Relink a connection by click and dragging it over a new node.
  • Hit "F" will focus the canvas on the center of all your nodes within it.
  • Mouse Scroll Wheel will Zoom In/Out the canvas.
  • Left Click and Drag in the canvas, will allow you to create a selection rectangle.
  • Holding Control while making a rectangle selection will create a Canvas Group.

On right click on a node or connection, a context menu will show up. Depending on the node or connection type there might be different extra options. Following are the common operations:

  • Delete: Deletes the Node or Connection. (available in multiselection as well ).
  • Copy Node: Copies the Node possible to Paste later. (available in multiselection as well)
  • Copy Assigned Task: Will copy the task that has been assigned to the Node or Connection.
  • Paste Assigned Task: Will paste the currently copied Task to the Node or Connection and assign it.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.