Skip to content

Binaryinject/GrayscaleGroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GrayscaleGroup

Grayscale effect in ugui such as CanvasGroup

Features

  • Easy to use
  • A lite API (field GrayscaleInGroup control all of child group)
  • TextMeshProUGUI shader prepare to ready

Warning

The plugin uses OdinInspector (not included)

How to install

Git Installation or Copy to project

Usage

How to enable Grayscale

using UnityEngine;
using Binaryinject;

public class Test : MonoBehaviour
{
	[SerializeField] private GrayscaleGroup _group = null;
	
	private void Awake()
	{
		_group.GrayscaleInGroup = true;
	}
}

How to use it in TextMeshProUGUI

  1. Create duplicate material from font asset
  2. Rename Material suffix to Grayscale
  3. Change material shader to TextMeshPro/Mobile/Distance Field - Grayscale
  4. A list of changed font materials can now be displayed in the component inspector

About

Grayscale effect in ugui suck as canvasgroup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published