• Stars
    star
    738
  • Rank 59,274 (Top 2 %)
  • Language
    C#
  • License
    MIT License
  • Created over 5 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A reverse masking solution for uGUI element in Unity.

Unmask For UGUI

Reverse mask for uGUI element in Unity.

PRs Welcome

<< Description | WebGL Demo | Installation | Usage | Contributing >>





Description

Unmask provides the following features:

  1. Reverse mask
  2. Ray through the unmasked rectangle
  3. Following another object
  4. Support nesting
Component Features Screenshot
Unmask Reverse masking for parent Mask component.

Fit Target / Fit On Late Update: Fit graphic's transform to target transform on LateUpdate.
Only For Children: Unmask affects only for children.
Show Unmask Graphic: Show the graphic that is associated with the unmask render area.
UnmaskRaycastFilter The ray Passes through the unmasked rectangle.
You can click on the unmasked button on the back side.





Demo

WebGL Demo

demo





Installation

Requirement

Using OpenUPM

This package is available on OpenUPM.
You can install it via openupm-cli.

openupm add com.coffee.unmask

Using Git

Find the manifest.json file in the Packages folder of your project and edit it to look like this:

{
  "dependencies": {
    "com.coffee.unmask": "https://github.com/mob-sakai/UnmaskForUGUI.git",
    ...
  },
}

To update the package, change suffix #{version} to the target version.

  • e.g. "com.coffee.unmask": "https://github.com/mob-sakai/UnmaskForUGUI.git#2.0.0",

Or, use UpmGitExtension to install and update the package.

For Unity 2018.2 or earlier

  1. Download a source code zip file from Releases page
  2. Extract it
  3. Import it into the following directory in your Unity project
    • Packages (It works as an embedded package. For Unity 2018.1 or later)
    • Assets (Legacy way. For Unity 2017.1 or later)





How to play demo

  • For Unity 2019.1 or later
    • Open Package Manager window and select UI Unmask package in package list and click Demo > Import in project button
  • For Unity 2018.4 or earlier
    • Click Assets/Samples/UI Unmask/Import Demo from menu

The assets will be imported into Assets/Samples/UI Unmask/{version}/Demo.
Open UIUnmask_Demo scene and play it.





Usage

Create Object From Menu (GameObject > UI > Unmask > ***)

Menu Screenshot
Tutorial Button
Iris Shot





Example of using

Case Description Screenshot
Unmasked text Black screen is cut out with unmasked text.
Hole Black screen is cut out with unmasked Image.
Tutorial button In tutorial, only specific button can be pressed.
Iris in/out Transition effect with iris in/out.





Contributing

Issues

Issues are very valuable to this project.

  • Ideas are a valuable source of contributions others can make
  • Problems show where this project is lacking
  • With a question you show where contributors can improve the user experience

Pull Requests

Pull requests are, a great way to get your ideas into this repository.
See CONTRIBUTING.md and develop branch..

Support

This is an open source project that I am developing in my spare time.
If you like it, please support me.
With your support, I can spend more time on development. :)






License

  • MIT
  • © UTJ/UCL

Author

mob-sakai

See Also

More Repositories

1

UIEffect

UIEffect is an effect component for uGUI element in Unity. Let's decorate your UI with effects!
C#
5,248
star
2

ParticleEffectForUGUI

Render particle effect in UnityUI(uGUI). Maskable, sortable, and no extra Camera/RenderTexture/Canvas.
C#
3,747
star
3

SoftMaskForUGUI

UI Soft Mask is a smooth masking component for Unity UI (uGUI) elements.
C#
1,778
star
4

UpmGitExtension

This package extends the UI of Unity Package Manager (UPM) for the packages installed from git repository.
C#
738
star
5

ShinyEffectForUGUI

Shiny effect of uGUI, which does not need mask or normal map.
C#
353
star
6

CSharpCompilerSettingsForUnity

Change the C# compiler (csc) used on your Unity project, as you like!
C#
274
star
7

GitDependencyResolverForUnity

This plugin resolves git url dependencies in the package for Unity Package Manager. You can use a git url as a package dependency!
C#
236
star
8

StaticBluredScreen

Non-realtime (=static) screen blur for Unity. Easy to use background for dialogs.
C#
182
star
9

MeshEffectForTextMeshPro

Mesh effect components for TextMeshPro in Unity.
C#
141
star
10

AtlasImage

AtlasImage is a graphic component use SpriteAtlas for uGUI. In addition, add useful sprite selector and border editor to the inspector.
C#
127
star
11

UIEffectSnapshot

Capture a screenshot with effect and display it. Light-weight, non-realtime, no-camera (and no-PostProcessingStack), but be effective enough. The captured snapshot can be used as a background for a UI panel.
C#
127
star
12

MirrorReflectionEffectForUGUI

A simple mirror reflection effect for a uGUI without reflection probes or shaders.
C#
112
star
13

CompositeCanvasRenderer

CompositeCanvasRenderer bakes multiple source graphics into a bake-buffer (RenderTexture) and renders it. Additional material modification, mesh modification, and baking effects are supported! Let's enjoy the effects that were difficult to implement with UI shaders, such as blur, soft outline, and soft shadow!
C#
109
star
14

DissolveEffectForTMPro

DissolveEffectForTMPro provide dissolve effect component for TextMeshPro in Unity.
C#
102
star
15

SubAssetEditor

Editor for SubAsset in unity project.
C#
101
star
16

OpenSesameCompilerForUnity

A Roslyn compiler to access internals/privates for Unity. In other words, you can access to any internals/privates in other assemblies, without reflection. Let's say, "Open sesame!"
C#
100
star
17

ProjectBuilder

A tool for easy automating and customizing build process for Unity.
C#
94
star
18

UnityEventDrawerEx

This plugin extends the UnityEventDrawer to display runtime calls in the inspector.
C#
92
star
19

ShinyEffectForTMPro

ShinyEffectForTMPro provide shiny effect component for TextMeshPro in Unity.
C#
89
star
20

DissolveEffectForUGUI

A dissolve effect for uGUI, without material instancing. Please star and watch this project :)
C#
77
star
21

unity-activate

A tool to activate Unity license.
TypeScript
75
star
22

UITransition

C#
55
star
23

CompositeToggle

Composite toggle system for unity
C#
44
star
24

ButtonEx

C#
43
star
25

docker-unity

New series of CI-specialised docker images for Unity. Superseding the famous gableroux/unity3d images.
Dockerfile
34
star
26

BlurringAtlasForUGUI

A blur effect for uGUI in Unity, that is effective even for atlas images including dynamic fonts.
C#
34
star
27

SymbolCatalog

A tool for edit script symbol define for Unity.
C#
34
star
28

OpenSesame

A custom Roslyn compiler that allows access to internals/privates in other assemblies. Say "Open, Sesame!"
C#
30
star
29

MainWindowTitleModifierForUnity

A demo to change the text displayed in UnityEditor's title bar
C#
29
star
30

unity-changeset

Get/List Unity editor changeset
TypeScript
27
star
31

SimpleBuildInterface

A simple build interface for Unity CLI. Support all platforms without executeMethod option.
C#
25
star
32

unity.package-manager.metadata

Contains metadata used by the com.unity.package-manager package to fulfill client requests
Shell
25
star
33

RotateMe

Rotate the object. (This repo is a tutorial for "How to develop a package for UnityPackageManager")
Shell
23
star
34

InternalAccessibleCompilerForUnity

Compile a c# project to a internal accessible dll (for Unity)
C#
22
star
35

UISystem

C#
20
star
36

ScrollEx

C#
15
star
37

AssetSystem

C#
15
star
38

UnityBuiltinShaders

Unity's built-in shaders.
ShaderLab
13
star
39

VertexTextureFetchForUGUI

C#
11
star
40

InternalAccessibleCompiler

Compile a c# project to a internal accessible dll
C#
8
star
41

UniIx

Interactive Extensions for Unity for Unity
C#
7
star
42

Demos

6
star
43

JobcanExtensionForChrome

JavaScript
5
star
44

git-snapshot

git-snapshot is a command-line tool to take a snapshot of the directory and creates/updates another branch, like git subtree split --squash.
JavaScript
5
star
45

Coffee.Internal

Tools and snippets for package development
C#
5
star
46

unity-changeset-action

[GitHub Action] Get Unity editor change set for specific version
JavaScript
5
star
47

AtlasSystem

Atlas system for Unity
C#
4
star
48

unity-list-action

[GitHub Action] Get Unity editor versions for next jobs
JavaScript
3
star
49

UnityAdventCalendar2021

https://qiita.com/items/37978a030d6a6e262065
C#
3
star
50

ApiSystem

C#
3
star
51

mob-sakai.github.io

3
star
52

actionsflow-workflow-test

2
star
53

mob-sakai

1
star
54

UnityGitDependencyTest

A test repo for GitDependencyResolverForUnity
C#
1
star