UI Extend Button
UI Extend Button simplifies UGUI button customization by automatically managing visual states without manual ColorBlock configuration. Features automatic color adjustment for hover, pressed, and disabled states, integrated sound and scale animation controls, and streamlined Inspector-based setup with one-click recommended tinting and state reset functionality.
com.dopple.uiextendbutton Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/uiextendbutton.git README Markdown
Copy this to your project's README.md
## Installation
Add **UI Extend Button** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/uiextendbutton.git
```
[](https://www.pkglnk.dev/pkg/uiextendbutton)README
UI Extend Button
Unity์ UI ๋ฒํผ์ ํ์ฅํ์ฌ ๋์ฑ ์ ์ฐํ ๋น์ฃผ์ผ๊ณผ ์ํธ์์ฉ์ ์ ๊ณตํฉ๋๋ค.
๐ ๊ฐ์
UI Extend Button์ UGUI ๋ฒํผ์ ํ์ฅํ์ฌ ๋ค์ํ ๋ฒํผ ์ํ๋ฅผ ์๋์ผ๋ก ๊ด๋ฆฌํ ์ ์๋ ํจํค์ง์
๋๋ค.
โ
์ปค์คํ
๋ฒํผ ๋น์ฃผ์ผ (ํธ๋ฒ, ํด๋ฆญ, ๋นํ์ฑํ ๋ฑ)
โ
์๋ ์์ ์กฐ์ ๊ธฐ๋ฅ
โ
๊ฐ๋ณ๊ณ ์ฌ์ฉํ๊ธฐ ์ฌ์ด ๊ตฌ์ฑ
์ด์ ColorBlock์ ์ง์ ์ค์ ํ์ง ์์๋ ๋ฒํผ์ ์ํ๋ณ ์์์ ํธ๋ฆฌํ๊ฒ ์กฐ์ ํ ์ ์์ต๋๋ค.
๐ฆ ์ค์น ๋ฐฉ๋ฒ
manifest.json์ ์ด์ฉํ ์ค์น
Unity ํ๋ก์ ํธ์ Packages/manifest.json ํ์ผ์ ๋ค์ ๋ด์ฉ์ ์ถ๊ฐํ์ธ์.
"dependencies": {
"com.dopple.uiextendbutton": "https://github.com/doppleddiggong/UIExtendButton.git"
}
Git URL์ ์ด์ฉํ ์ค์น
Click Window > Package Manager to open Package Manager UI.
Click + > Add package from git URL... and input the repository URL :
๐ ์ฌ์ฉ ๋ฐฉ๋ฒ
1. ExtendButtonVisualCtrl ์ปดํฌ๋ํธ ์ถ๊ฐ
- UI ๋ฒํผ(GameObject)์
ExtendButtonVisualCtrl์ปดํฌ๋ํธ๋ฅผ ์ถ๊ฐํ์ธ์. - ๋ฒํผ๊ณผ ๊ด๋ จ๋ ๊ทธ๋ํฝ ์์๋ฅผ ์๋์ผ๋ก ๊ฐ์งํ์ฌ ์ค์ ํฉ๋๋ค.
2. ๋ฒํผ ์์ ์ค์
๋ค์ ํญ๋ชฉ์ Inspector์์ ์กฐ์ ํ ์ ์์ต๋๋ค.
- ํธ๋ฒ(hover) ์ํ ์์
- ํด๋ฆญ(pressed) ์ํ ์์
- ๋นํ์ฑํ(disabled) ์ํ ํฌ๋ช ๋ ์กฐ์
- ์์ด์ฝ ๋ฐ ํ ์คํธ ์์
3. HoverSound, ClickSound๋ฅผ ์ ์ด
ExtendButton์ ํตํด ์ ์ดํ ์ ์์ต๋๋ค
4. UIElementScaler๋ฅผ ํตํด Scale์ ๋๋ฉ์ด์ ์ ์ ์ดํ ์ ์์ต๋๋ค
5. ์์ธํ ์ฌ์ฉ์ SampleScene๊ณผ ์์์ ํ์ธํด๋ณด์ธ์. ์ ํ์ธํด๋ณด์ธ์.
๐จ Inspector ๊ธฐ๋ฅ
์ด ํจํค์ง๋ ์ธ์คํํฐ์์ ๋ฐ๋ก ์ค์ ๊ฐ๋ฅํ ๋ฒํผ์ ์ ๊ณตํฉ๋๋ค.
- "Recommand Tint Color" โ ๋ฒํผ์ ์ถ์ฒ ์์ ์๋ ์ค์
- "Set Normal State" โ ๋ฒํผ์ ๊ธฐ๋ณธ ์ํ๋ก ๋ฆฌ์
๐ ๋ผ์ด์ ์ค
์ด ํ๋ก์ ํธ๋ MIT ๋ผ์ด์ ์ค ํ์ ๋ฐฐํฌ๋ฉ๋๋ค. ์์ธํ ๋ด์ฉ์ LICENSE ํ์ผ์ ํ์ธํ์ธ์.
๐ ๊ด๋ จ ๋งํฌ
- GitHub ์ ์ฅ์: UIExtendButton
๐ ์ถ๊ฐ ์ ๋ณด
- Unity 2020.3 ์ด์์์ ์ ์์ ์ผ๋ก ๋์ํฉ๋๋ค.
- ๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ฉด ์ด์์ ๋ฑ๋กํด ์ฃผ์ธ์.

No comments yet. Be the first!