Loic.mob-sakai.UIEffect 1.0.0

dotnet add package Loic.mob-sakai.UIEffect --version 1.0.0
                    
NuGet\Install-Package Loic.mob-sakai.UIEffect -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Loic.mob-sakai.UIEffect" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Loic.mob-sakai.UIEffect" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Loic.mob-sakai.UIEffect" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Loic.mob-sakai.UIEffect --version 1.0.0
                    
#r "nuget: Loic.mob-sakai.UIEffect, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Loic.mob-sakai.UIEffect@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Loic.mob-sakai.UIEffect&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Loic.mob-sakai.UIEffect&version=1.0.0
                    
Install as a Cake Tool

UIEffect

UIEffect provides visual effect components for Unity UI.

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image
alternate text is missing from this package README image alternate text is missing from this package README image PRs Welcome alternate text is missing from this package README image alternate text is missing from this package README image

<< Description | WebGL Demo | Installation | Usage | Example of using | Change log | Support >>

<br><br><br><br>

Description

Let's decorate your UI with effects! You can control parameters as you like from the script as well as inspector. AnimationClip is supported as a matter of course!

thumbnail
image

<br><br>

Available effects
Component Features Screenshot
UIEffect Combine some visual effects.<br><br>Effect Mode: Grayscale, Sepia, Nega, Pixelation<br>Color Mode: Multiply, Fill, Additive, Subtract<br>Blur Mode: Fast, Medium, Detail<br>Advanced Blur: Enable more beautiful blurring.
UIShiny Apply shining effect to a graphic.<br>The effect does not require Mask component or normal map.<br><br>Parameters: Effect factor, Width, Rotation, Softness, Brightness, Gloss
UIDissolve Apply dissolve effect to a graphic.<br><br>Color Mode for edge: Multiply, Fill, Additive, Subtract<br>Parameters: Effect factor, Width, Rotation, Softness, Edge color<br>Options: Effect area, Keep effect aspect ratio
UIHsvModifier Modify HSV for graphic.<br><br>Target: Color, Range<br>Adjustment: Hue, Saturation, Value
UITransition Effect Apply transition effect with a single channel texture.<br><br>Effect Mode: Cutoff, Fade, Dissolve<br>Options: Effect area, Keep effect aspect ratio, transition texture<br>Pass Ray On Hidden: Disable the graphic's raycastTarget on hidden.

<br><br>

The following effects can be used with the above components.
Component Features Screenshot
UIShadow Add shadow/outline to a graphic.<br>The performance is better than the default Shadow/Outline component.<br><br>ShadowStyle: Shadow, Shadow3, Outline, Outline8
UIGradient Change vertex color as gradient with angle and offset.<br><br>Direction: Horizontal, Vertical, Angle, Diagonal<br>Options: Offset, Color space
UIFlip Flip a graphic.<br><br>Direction: Horizontal, Vertical, Both

<br><br><br><br>

Demo

WebGL Demo

<br><br><br><br>

Installation

Requirement
  • Unity 2017.1 or later
  • No other SDK are required
Using OpenUPM (for Unity 2018.3 or later)

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

openupm add com.coffee.ui-effect
Using Git (for Unity 2018.3 or later)

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

{
 "dependencies": {
 "com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git",
 ...
 },
}

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

  • e.g. "com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git#4.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)

<br><br><br><br>

How to play demo

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

The assets will be imported into Assets/Samples/UI Effect/{version}/Demo.
Open `

<br><br><br><br>

Usage

  1. Add any effect component to UI element (Image, RawImage, Text, etc...) from Add Component in inspector or Component > UI > UIEffect > ... menu.
    alternate text is missing from this package README image
  2. Adjust the parameters of the effect as you like, in inspector.
    alternate text is missing from this package README image
  3. You can add or modify effects from the script.
var uieffect = gameObject.AddComponent<UIEffect>();
uieffect.effectMode = EffectMode.Grayscale;
uieffect.effectFactor = 0.85f;
uieffect.colorMode = ColorMode.Add;
uieffect.effectColor = Color.white;
uieffect.colorFactor = 0.1f;
uieffect.blurMode = BlurMode.FastBlur;
uieffect.blurFactor = 1;

alternate text is missing from this package README image

  1. Enjoy!

<br><br><br><br>

Example of using

UIEffect can easily be used in a variety of cases in the game.

Case Description Screenshot
Lock/unlock contents Use UIEffect to apply grayscale.<br>Indicate to user that the content is unavailable.
Silhouette Use UIEffect for filling color.
Soft shadow/<br>Outer glow Use UIEffect and UIShadow to blur the shadow.
Colored shadow Use UIEffect and UIShadow to fill shadow with color.
Blurred dynamic font Use UIEffect to blur text.<br>To blur dynamic font cleanly, enable Advanced Blur option.
Text with outline & shadow Use two UIShadows to add outline and shadow.<br>There is less overdraw than default Outline/Shadow.
Shining button Use UIShiny for shining button.<br>Indicate to user that you can press the button.
Screen transition Use UITransitionEffect to transition the screen with any transition texture.

<br><br><br><br>

License

  • MIT
  • © UTJ/UCL

<br><br><br><br>

Support

This is an open-source project that I am developing in my free time. If you like it, you can support me. By supporting, you let me spend more time working on better tools that you can use for free. 😃

become_a_patron_on_patreon
become_a_sponsor_on_github

Author

mob-sakai alternate text is missing from this package README image

See Also

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 0 7/31/2021