Skip to main content

OverrideBodySettings

A class in Root.Township, the global namespace.

Component on an interactable that swaps in different body controller settings for a player while they're interacting with it.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private Interactable interactableThe interactable on the same object.
private BodyControllerSettings settingsThe body controller settings to use during the interaction.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Hooks the interactable's InteractionStarted.
private void OverrideSettings(Interactable interactable, Interactor interactor)Adds settings as an override on the player's body controller, lasting while the interactor still holds this interactable.