Skip to main content

ModHands

A class in Root.Township, the global namespace.

Controller extension that fires ModCalled when the debug mod button is pressed while grab is held. Only hooks up for users with the debug_features permission.

Constructors​

MemberWhat it is
ModHands()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Events​

MemberWhat it is
static event ModHands.ModEvent ModCalledStatic event raised with the controller when a player triggers the debug mod input.

Methods​

MemberWhat it is
override void InitializeControllerExtension()Hooks the debug mod action if the user has debug_features and a controller is set.
1 private and internal method
MemberWhat it is
private void ButtonPressed(PlayerInput playerInput)Raises ModCalled with this controller if grab is held when the debug mod action starts.