Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

A generic fade group system to mimic the standard Canvas Group alpha control functionality for other things, such as SpriteRenderer.

License

Notifications You must be signed in to change notification settings

jackv24/Unity-Nested-Fade-Group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nested Fade Group for Unity

A generic fade group system to mimic the standard Canvas Group alpha control functionality for other, non-canvas things. Currently the only fade target is SpriteRenderer, but it can be easily extended to support new fade targets such as TextMeshPro, MeshRenderer, etc.

How do I add new fade targets?

New "bridging components" can be created to allow existing sealed Unity components (such as SpriteRenderer) to be used with the fade groups. Simply extend NestedFadeGroupBase and use the attribute NestedFadeGroupBridge like so:

[ExecuteInEditMode]
[RequireComponent(typeof(SpriteRenderer))]
[NestedFadeGroupBridge(typeof(SpriteRenderer))]
public class NestedFadeGroupSpriteRenderer : NestedFadeGroupBase
{
    private SpriteRenderer spriteRenderer;

About

A generic fade group system to mimic the standard Canvas Group alpha control functionality for other things, such as SpriteRenderer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published