Skip to main content

toggle_block

Function toggle_block 

Source
pub fn toggle_block(
    config: &GDObjConfig,
    target_group: i16,
    activate_group: bool,
    claim_touch: bool,
    multi_activate: bool,
    spawn_only: bool,
) -> GDObject
Expand description

Returns a toggle block object

ยงArguments

  • config: General object options, such as position and scale
  • target_group: Spawns this group
  • activate_group: Activate/spawn group instead of deactivating?
  • claim_touch: Disable buffer clicking?
  • multi_activate: Allow multiple activations?
  • spawn_only: Spawn only without toggling?