Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Animation
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/7
Animate and cast shadows from sprites in a 3D environment. Contains a sprite shadow shader for all pipelines - URP, HDRP, and built-in.
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
2023.1.3f1
Compatible
Compatible
Compatible
2021.3.22f1
Compatible
Compatible
Compatible
Additional compatibility information

This template, the shader, and the sample scene were created in URP, but the shader will also work with the built-in pipeline. The code will work with any pipeline, but the shadows do not work correctly in HDRP.

Description

SCRIPT: Use animated sprites in a 3D environment by simply dropping one script on your object.


SHADER: Cast shadows from sprites onto your 3D environment with proper shadow cut outs.


The shadows are true projected shadows based on the lights in the scene, not just masked sprites projected onto the ground.


All you need is a quad object and a sprite or sprite sheet. The shader and animation scripts can be used independently or combined for animated sprites with shadows.


Main features include:

  • Full sample project created in URP to demonstrate the asset
  • Shader created in Shader Graph for easy editing
  • 3 separate shaders verified in all pipelines - URP, HDRP, built-in pipelines
  • Properly cut out shadows from sprites
  • Static or moving animated sprites in a 3D environment with shadows
  • Works on a simple quad object with sprite sheet material
  • Sprite sheets can contain multiple animations or just the one you will be using
  • Animated character example script that moves an NPC around
  • Instructions on how to use the shader in all pipelines
  • Total number of sprite frames can be set for the script in the UI
  • Optional HDR based emissive glow can be added to sprites through the existing shader

Support:

  • All of my templates and assets will have continuous support
  • Support, feedback, or questions: alpasun.games@gmail.com

Check out my other assets:


https://assetstore.unity.com/publishers/60903

Technical details

As a professional C# developer with over 12 years experience, my code is well commented, organized, and clearly laid out. There are XML comments for every class and most methods.


Assets used for this sample are for demonstration purposes only and were taken from a Unity created example project as listed below.


The code and scripts will work with any pipeline. The included project targets URP, but the documentation includes instructions on how to use the shader in the built-in or HDRP pipelines.


The sample project and scene contain an example of an animated 2D character walking around a simple environment. There are also examples of static animated sprites in the environment. Easily expand the example to manually control the character or add additional movement and collision logic.


Unity created example project:


https://assetstore.unity.com/packages/templates/tutorials/creator-kit-rpg-149309

3D Sprite Shadows and Animation

(not enough ratings)
35 users have favourite this asset
(35)
$6.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
218.4 KB
Latest version
1.5.1
Latest release date
Jul 12, 2023
Original Unity version
2021.3.22 or higher
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