-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,50 @@ | ||
# Unity-TilemapTransparency | ||
# Unity Tilemap Transparency | ||
|
||
This Unity script allows you to set the transparency of a Tilemap. It's useful for creating effects like faded backgrounds or semi-transparent layers in 2D games. | ||
|
||
## Features | ||
|
||
- Easily adjust the transparency of a Tilemap via the Inspector. | ||
- Supports real-time updates in the Unity Editor. | ||
- Simple to integrate and use. | ||
|
||
## How to Use | ||
|
||
1. **Clone or Download the Repository:** | ||
|
||
```sh | ||
git clone https://github.com/RimuruDev/Unity-TilemapTransparency.git | ||
``` | ||
|
||
2. **Add the Script to Your Project:** | ||
|
||
Copy the `TilemapTransparency.cs` script to your Unity project's `Assets` folder. | ||
|
||
3. **Attach the Script to a Tilemap:** | ||
|
||
- Select the GameObject with the `Tilemap` component. | ||
- Attach the `TilemapTransparency` script to the GameObject. | ||
|
||
4. **Set the Transparency:** | ||
|
||
- In the Inspector, adjust the `Transparency` slider to set the desired transparency level (0 = fully transparent, 1 = fully opaque). | ||
|
||
## Example Usage | ||
|
||
This script is typically used to set the transparency of background blocks in a Tilemap, allowing for semi-transparent layers that can enhance the visual depth of your 2D game. | ||
|
||
## Contact | ||
|
||
If you have any questions or need further assistance, feel free to contact me: | ||
|
||
- **Email:** [email protected] | ||
- **LinkedIn:** [https://www.linkedin.com/in/rimuru/](https://www.linkedin.com/in/rimuru/) | ||
- **GitHub:** [https://github.com/RimuruDev](https://github.com/RimuruDev) | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. | ||
|
||
--- | ||
|
||
**RimuruDev** |