InteractManager

Allows the interaction between interactable objects and the player. To set up custom Interactable objects or learning more about them, please check Interactable.cs

This component can be found on the Player object.

REFERENCES

  • mask: Bitmask that defines the interactable layer

  • weaponGenericPickeable: Attach the generic weapon pickeable object here

  • attachmentsGenericPickeable: Attach the generic attachment pickeable object here

INTERACTION

  • detectInteractionDistance: Distance from the player to detect interactable objects

  • progressRequiredToInteract: How much time player has to hold the interact button in order to successfully interact

  • interactInterval: Adjust the interaction interval, the lower, the faster you will be able to interact

  • Duplicate Weapon Adds Bullets: If true, when picking up a weapon that already exists in your inventory, you will add bullets instead of the weapon. ( Introduced in 1.3 )

  • canDrop: Enables and disables the Player´s ability to drop the weapons

    • droppingDistance: Distance from the player where the pickeable will be instantiated

  • canInspect: If true, the player will be able to inspect the current weapon.

    • realtimeAttachmentsCustomizationOnly: Allows the player to equip and unequip attachments while inspecting. It also displays a custom UI for that.

      • displayCurrentAttachmentsOnly: When inspecting, display current attachments only. Otherwise you will be able to see all compatible attachments through the UI.

EVENTS

  • events


InteractManagerEditor.cs

Renders the InteractManagerREFERENCES Custom Inspector

Last updated