Easy Interactable Triggers
A downloadable tool
This script package for Unity creates an interactable child collider on an object of your choosing. You only have to apply the InteractableChild component to an object and write a script to utilize it. An example code is provided and commented to provide documentation. Edit to your liking. Was made for 3D games, but it could easily be adapted to 2D. The scripts are not within their own namespace, so you may get errors if you have scripts sharing these class names: Interactable, InteractableChild, and InteractionManager.
I recommend having a layer in your project called "Interactable" so that your child colliders can be securely isolated from any collision logic you might implement. You'll get a warning if you don't have an Interactable layer; delete the DisableInteractableWarnings.txt file out of the package folder to stop the warnings.
Only tested in Unity 2022.3.37f1 but should work with any version, it isn't doing anything very complicated. The longest script is 100 lines only because of my silly signatures. I hope you like them! ;3
If you encounter any errors, contact me and I will try to fix them! milkshakebattlecat@gmail.com
This asset is FREE but the option to pay is there if you would like to support me. I'll appreciate you! Credit to MILKSHAKE BATTLECAT if you use this in your project would also be appreciated, but is not necessary :)
-
Background Image by: [freepik]
Status | Released |
Category | Tool |
Author | MILKSHAKEBATTLECAT |
Tags | 3D, helpful, scripts, trigger-area, Unity, utility |
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.