Grid Placement

ManipulationState

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: systems/manipulation/manipulation_state.gd

Version: 5.1

class_name: ManipulationState extends: RefCounted

Summary

The manipulation state holds reference to the object being manipulated and its temporary manipulated copy.

Signals

(none)

Exports

(none)

Methods

  • get_active_root()
    • Gets the root node of the active manipulatable, or null if none is set. This is a convenience method that safely accesses active_manipulatable.root with proper null checking. [return] The root Node of the active manipulatable, or null if no manipulatable is active or it has no root
  • set_targeted()
    • Sets the active manipulatable. Either takes a Manipulatable directly or a node that contains a Manipulatable component (searches via GBSearchUtils).

[b]Note:[/b] For setting the “target” (what is being aimed at), use GridTargetingState instead. This method is for setting what is being manipulated/hovered.

  • is_targeted_movable()
    • Checks if the currently targeted manipulatable is movable.[br][br] [code]return[/code]: [i]bool[/i] - True if targeted object can be moved, false otherwise
  • get_runtime_issues()
    • Returns an array of runtime validation issues for this resource