Use Material You colors in Unity projects with this simple and customizeable package.

-Smooth-E- 84a71b6d6f Added README.md 2 år sedan
.media b34d4f2c4a Changes in package structure and readme 2 år sedan
Editor acc633b486 .meta files are needed 2 år sedan
Runtime acc633b486 .meta files are needed 2 år sedan
Editor.meta acc633b486 .meta files are needed 2 år sedan
LICENSE.md b34d4f2c4a Changes in package structure and readme 2 år sedan
LICENSE.md.meta b34d4f2c4a Changes in package structure and readme 2 år sedan
README.md 84a71b6d6f Added README.md 2 år sedan
README.md.meta b34d4f2c4a Changes in package structure and readme 2 år sedan
Runtime.meta acc633b486 .meta files are needed 2 år sedan
package.json 6ad43a5063 Version changed to 1.0.0, ready for release 2 år sedan
package.json.meta acc633b486 .meta files are needed 2 år sedan

README.md

Material You Colors for Unity

With help of this Unity package you will be able to use Material You colors in your projects. It implements several components to control colors of different UI elements. It also can be used in projects which are targeting API lower than 31 (Android 12), because it has a fallback palette for such cases.

Usage

Import the package to your project. To do so, open a package manager tab, click the plus button on the left upper corner of it and select Add package from git URL. Then enter a git URL of this repository. You can then add components like ImageMonetColorer to your objects and select needed color with sliders on those components.

Tweaking for your needs

Right now there are components implemented in this package for coloring the following UI elements:

  • Image
  • Raw Image
  • Outline
  • Shadow
  • Text
  • Camera Background

However, you can easily create colorers for any component you need. First of all, inherit you component from a MonetColorer base class, then overide the UpdateColor() method as you want. Calling base.UpdateColor() will set the _colorValue and _color fields to a new values, when they are changed.

Fallback palette. If you want a custom fallback palette, customize this file. Currently, there is no tool to create such file, but there are plans to make one. For now you can use my Previewer app and edit its output by hand.

Editor overview

Licensing

This project is licensed under a BSD 2-Clause "Simplified" Licanse, meaning you can use, edit and redistribute contets of this repository freely, but without any warranty and you also should credit me as an author.

Artwork used in this readme is taken from Google Material Icon Library.