Simple Dynamic Interactions
Unity Interactions made Simple. Just Drag & Drop and Connect using Unity Events.
com.rabbi32.simple-dynamic-interactions 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/simple-dynamic-interactions.git README Markdown
Copy this to your project's README.md
## Installation
Add **Simple Dynamic Interactions** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/simple-dynamic-interactions.git
```
[](https://www.pkglnk.dev/pkg/simple-dynamic-interactions)Dependencies (2)
README
Simple Dynamic Interactions
A Drag and Drop Interaction System to make interacting with the game stupid simple! -
Made for
Features
- Makes use of Unity Events for
OnLookAt,OnLookAway,OnInteractStarted,OnInteractPreformed, andOnInteractCanceledfor easy assignment in the Inspector - Adopts QuickOutline (made by chrisnolet) to outline objects when looking at them - already provided in package
- Adds a Screen Space UI Tooltip shown above interactables informing players how to interact
- Easy Debug Scene Tool to see Length of Ray if looking at and Interactable
Install via UPM (unity package manager)
Open your Unity Project 2022.3 or higher and make your way to the Package Manager
In the package Manager go to the plus icon and click
Install package from git URL...Copy and Paste this GitURL
https://github.com/NotRabbi32/Simple-Dynamic-Interactions-Unity.gitClick Install
And that's it if you want the sample folder to get a demonstration of how it works. In the Package Manager locate the Simple Dynamic Interactions package. Click samples and then click import now a scene will show up in Project:/Assets/Samples folder inside the Project window.
How to Use
Add
PlayerInteractor.csto the playerAdd
UI CanvasPrefab to SceneSet-up
PlayerInteractor.cscomponents in Inspector- Assign Players Camera to
Interactor Source - Set
Layer Maskto Include Interactable Layers - bare minimum change from nothing to Default - Set the Child of
UI CanvastheInteractionPromptto thePromptfield - Set your
Interaction Referenceto your desired InputAction
- Assign Players Camera to
Add
Interactable.csto any GameObject wt aColliderSet-up
Interactable.cs- Assign custom public method in
OnInteractStartedevent for interaction when the player presses the interact key OnInteractPerformedis for when u hold down the interact buttonOnInteractCanceledis self-explanatory
- Assign custom public method in
That's it go into play mode and try to interact now if you have any questions or need help you can find me in the #help channel in my Discord Server
No comments yet. Be the first!