Shows the name and position of the object the player is working with. It shows, in order of priority: the object being moved, then the object being placed, then the object under the cursor. The name is the catalog entry's when the object was placed from one, so the HUD says what the player picked. A 3D object's position includes its height. var informer = TargetInformer.new() add_child(informer) informer.resolve_placement_dependencies(session)
Source: addons/grid_placement/ui/target_informer/target_informer.gd
Syntax
class TargetInformer extends PlacementControlMembers
| Name | Kind | Summary |
|---|---|---|
target | Property | The object currently shown. Set automatically. |
get_targeting_state | Method | |
set_targeting_state | Method | |
get_building_state | Method | |
set_building_state | Method | |
get_manipulation_state | Method | |
set_manipulation_state | Method | |
get_mode_state | Method | |
set_mode_state | Method | |
info_parent | Property | Container the info labels are added to. |
resolve_placement_dependencies | Method | |
clear | Method | |
refresh | Method | |
setup | Method | |
add_info_label | Method | |
track_manipulatable_target | Method |