项目作者: mob-sakai

项目描述 :
A dissolve effect for uGUI, without material instancing. Please star and watch this project :)
高级语言: C#
项目地址: git://github.com/mob-sakai/DissolveEffectForUGUI.git
创建时间: 2018-04-23T13:43:48Z
项目社区:https://github.com/mob-sakai/DissolveEffectForUGUI

开源协议:MIT License

下载


DissolveEffectForUGUI

NOTE: This project has been integrated into UIEffect, so we are NOT continuing development in this repository.

A dissolve effect for uGUI, without material instancing.







<< Description | Demo | Download | Usage | Development Note | Change log >>





Description

DissolveEffectForUGUI applies dissolve-effect to uGUI element (Image, RawImage, Text, etc…) WITHOUT material instancing.
This will suppress extra draw calls and improve performance.

  • Parameters
    • Dissolve factor
    • Edge width
    • Edge color
    • Edge color mode
    • Edge softness
    • Noise pattern image (shingle channel)
    • Effect player
      • Enable playing
      • Duration
      • Update mode





Demo

  • demo
    • Just 1 draw call!

WebGL Demo





Usage

  1. Download DissolveEffectForUGUI.unitypackage from Releases.
  2. Import the package into your Unity project. Select Import Package > Custom Package from the Assets menu.
  3. In Unity5.6+, enable TexCoord1 channel of canvas.
  4. Add DissolveEffectForUGUI component to UI element (Image, RawImage, Text, etc…) from Add Component in inspector.
  5. Control effect parameters in inspector.
  6. Enjoy!
Requirement
  • Unity 5.5+ (included Unity 2017.x)
  • No other SDK are required





Development Note

What’s doing?





License

Author

mob-sakai

See Also