Update readme
parent
feef8efbb3
commit
f859f1a02b
11
README.md
11
README.md
|
|
@ -3,7 +3,7 @@ UnmaskForUGUI
|
||||||
|
|
||||||
Reverse mask for uGUI element in Unity.
|
Reverse mask for uGUI element in Unity.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
[](https://github.com/mob-sakai/UnmaskForUGUI/releases)
|
[](https://github.com/mob-sakai/UnmaskForUGUI/releases)
|
||||||
[](https://github.com/mob-sakai/UnmaskForUGUI/releases)
|
[](https://github.com/mob-sakai/UnmaskForUGUI/releases)
|
||||||
|
|
@ -71,18 +71,15 @@ Select `Assets > Import Package > Custom Package` from the menu.
|
||||||
<br><br><br><br>
|
<br><br><br><br>
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
1. Download `*.unitypackage` from [Releases](https://github.com/mob-sakai/UnmaskForUGUI/releases).
|
1. Add Unmask component to the UI element (Image, RawImage, Text, etc...) under Mask, from `Add Component` in inspector or `Component > UI > Unmask > Unmask` menu.
|
||||||
2. Import the package into your Unity project. Select `Import Package > Custom Package` from the `Assets` menu.
|
2. If you want to unmask the area of the button, follow the steps below:
|
||||||

|
|
||||||
3. Add Unmask component to the UI element (Image, RawImage, Text, etc...) under Mask, from `Add Component` in inspector or `Component > UI > Unmask > Unmask` menu.
|
|
||||||
4. If you want to unmask the area of the button, follow the steps below:
|
|
||||||
* Set the button to `Fit Target` in Unmask component.
|
* Set the button to `Fit Target` in Unmask component.
|
||||||
* If the button moves with animation etc., enable `Fit On LateUpdate` in Unmask component.
|
* If the button moves with animation etc., enable `Fit On LateUpdate` in Unmask component.
|
||||||
* Add a UnmaskRaycastFilter component to UI element blocking ray.
|
* Add a UnmaskRaycastFilter component to UI element blocking ray.
|
||||||
* Set the Unmask to `Unmask` in UnmaskRaycastFilter component.
|
* Set the Unmask to `Unmask` in UnmaskRaycastFilter component.
|
||||||
* Disable `RaycastTarget` of the UI elements, as necessary.
|
* Disable `RaycastTarget` of the UI elements, as necessary.
|
||||||

|

|
||||||
1. Enjoy!
|
3. Enjoy!
|
||||||
|
|
||||||
|
|
||||||
##### Requirement
|
##### Requirement
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue