Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Game Toolkits
1/6
Simple to use raycast gun scripts with multiple shooting methods for 3D and 2D, modular and clean.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2022.3.19f1
Compatible
Compatible
Compatible
Description

This script is made for simple use of raycasting shooting, similar to mechanics found in popular shooting games.


The core feature of this script is to be modular, allowing you to easily apply it to any compatible weapon and making it simple to adjust or integrate with other scripts.


This package contains 4 custom made weapons which resemble the different modes of shooting currently available: Single shot, Burst fire, Full auto & Shotgun.

Technical details
  • RaycastingGunScript.cs
  • LowPoly_Pistol & 2D
  • LowPoly_AK47 & 2D
  • LowPoly_Sniper & 2D
  • LowPoly_Shotgun & 2D
  • 2D & 3D Demo scenes with necessary script.

Modular Raycasting Gun Script 2D & 3D

(not enough ratings)
$19.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
4.3 MB
Latest version
1.1.0
Latest release date
Oct 7, 2024
Original Unity version
2022.3.19
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR
$19.99