Grid Placement

ManipulationState

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: systems/manipulation/manipulation_state.gd

Version: 5.0

class_name: ManipulationState extends: GBResource

Signals

  • data_changed
    • Emitted when the active manipulation on an object changes Null means there is no manipulation currently active on the state.
  • active_manipulatable_changed
    • The manipulatable that is being hovered over
  • active_target_node_changed
    • Signal for when the currently active target node changes
  • parent_changed
    • When the node for performing transform adjustments to (rotate, flip, etc) during a manipulation changes
  • started
    • Emitted when a manipulation action is started
  • confirmed
    • Emitted when a manipulation action is confirmed
  • finished
    • Emitted when a manipulation action is finished
  • canceled
    • Emitted when a manipulation action is canceled
  • failed
    • Emitted when a manipulation action fails

Exports

(none)

Methods

  • _init()
  • get_manipulator()
    • Gets the active manipulator from the _owner_context GBOwnerContext.
  • set_targeted()
    • Sets the target node. Either takes a regular node or a manipulatable. Will set both the active_target_node and the active_manipulatable if possible
  • 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
  • validate_setup()
    • Checks if the state is ready for manipulation.
  • _on_data_status_changed()
    • Private handler for status changes in manipulation data. Emits specific signals for each status so other nodes like UI can respond.[br][br] [code]p_status[/code]: [i]GBEnums.Status[/i] - New status of the manipulation data
  • get_editor_issues()
    • Returns an array of editor-time validation issues for this resource
  • get_runtime_issues()
    • Returns an array of runtime validation issues for this resource