Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RimuruDev committed May 27, 2024
1 parent c0a2a6f commit 3f94512
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion README.md
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**

0 comments on commit 3f94512

Please sign in to comment.