BehaviorTool ​
Inherits: RefCounted
The click tool of the Behaviour tab: while one of its buttons is on (Add patrol points, Add a place, Add a wander area) a left click on the ground of the 3D viewport adds there what the button adds, through BehaviorPanel.add_point_at (one step of Undo). With Pick target on, a click picks the NPC or the object nearest to it (within a few pixels) as the target of the chosen task (BehaviorPanel.pick_target). Escape turns the tool off. A click is used up, so it does not select what is under it.
Variables ​
EditorPlugin | plugin | |
BehaviorPanel | panel | null |
Methods ​
int | forward_input( camera: Camera3D, event: InputEvent ) |
Variable descriptions ​
EditorPlugin plugin ​
No description yet.
BehaviorPanel panel = null ​
No description yet.
Method descriptions ​
int forward_input( camera: Camera3D, event: InputEvent ) ​
An event of a 3D viewport (AFTER_GUI_INPUT_STOP when it was used)