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 |
Guides that use this class
Tutorials built on Grid Placement
- Godot multiplayer grid placement: one host, four sessions
- Godot 2D grid building system: paint, place, save
- Godot 3D grid building system: the runtime loop
- Godot 4 grid-building plugins: build mode vs editor tools
- 3D room placement in Godot: build rooms and stack storeys
- 3D grid placement in Godot 4: full setup tutorial
- Snap to a TileMap in Godot: 2D grid placement
- How to make a farming system in Godot
- How to snap objects to a 3D grid in Godot