Overlap Shapes View on Asset Store (opens in new tab)

Package details

Latest version
1.0
Last updated
First released
Unity version
6000.0.31 or later
Package size
51 KB
Files
15
Favorites
6
Views in the past week
4

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Keywords

Overlap Shapes

by Jacob Homanics (opens in new tab)

No ratings yet

Detect and Interact with colliders within predefined shapes. Designed for flexibility and efficiency, it enables developers to use cubes, spheres, or capsules as detection areas.

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Overlap Shapes, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 1

Overlap Shapes screenshot 1

Overlap Shapes screenshot 1

About this asset

The OverlapShape System simplifies the process of detecting and responding to colliders in Unity using geometrical shapes. It provides the following benefits:

  • Ease of Integration: Attach any overlap shape (cube, sphere, capsule) to a GameObject and configure properties directly in the Unity Editor.
  • Real-Time Detection: Supports real-time collider detection using Unity’s Physics API with customizable properties like size, offset, and layer masks.
  • Event-Driven: Built-in UnityEvents (OnCastHit, OnEnter, OnStay, OnExit) allow developers to add custom behavior without modifying the core code.
  • Debug Visualization: Scene view visualization tools help developers debug and fine-tune their settings.

From the publisher's Asset Store listing.

Technical details

Core Structure:

  • Base Class: OverlapShapeAbstract class providing shared functionality for all overlap shapes.
    Includes helper methods like CalculatePosition(Vector3 offset) for offset-based positioning and base fields for collider management.

Implemented Shapes:

  1. OverlapCube:Shape: Cube/box.
    Properties: halfExtents, offset, layerMask.
    Physics Methods: Physics.OverlapBox, Physics.OverlapBoxNonAlloc.
  2. OverlapSphere:Shape: Sphere.
    Properties: radius, offset, layerMask.
    Physics Methods: Physics.OverlapSphere, Physics.OverlapSphereNonAlloc.
  3. OverlapCapsule:Shape: Capsule.
    Properties: radius, height, offset, layerMask.
    Physics Methods: Physics.OverlapCapsule, Physics.OverlapCapsuleNonAlloc.

Core Features:

  • Non-Allocating Methods: All shapes support non-allocating Physics methods for optimized performance in environments with frequent overlap checks.
  • UnityEvents:OnCast: Triggered every time an overlap check is performed.
    OnCastHit: Triggered when one or more colliders are detected.
    OnEnter: Triggered when a collider enters the overlap area.
    OnStay: Triggered when a collider remains in the overlap area.
    OnExit: Triggered when a collider exits the overlap area.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP
6000.0.31f1 Compatible Not listed Not listed

As listed on the Asset Store.