A collection of useful C# scripts and snippets for Unity3D game development. These scripts are designed to add common functionalities, animations, and visual enhancements to your Unity projects.
Below is a list of scripts currently available in this repository. Each script is designed to be a self-contained component that you can easily integrate into your Unity projects.
-
SpriteSheetAnimator.cs
- Animates a UI
Imageor aSpriteRendererby cycling through an array of sprites to create frame-by-frame animations. - View Code
- Animates a UI
-
TextTypingEffect.cs
- Creates a typing effect for UI
Textcomponents, revealing text character by character. Includes optional sound effects and completion events. - View Code
- Creates a typing effect for UI
-
UINotificationAnimator.cs
- Animates a UI panel to slide in from a screen edge, stay for a duration, and then slide out. Useful for in-game notifications.
- View Code
- Clone or download the desired
.csfile from this repository. - Add the script to your Unity project (e.g., by dragging it into your Project window).
- Attach the script component to a GameObject in your scene.
- Configure the public properties of the script in the Inspector window as needed.
Feel free to fork this repository, suggest improvements, or add your own useful Unity snippets!