A downloadable Unity package

Download NowName your own price

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 tarball. Then select a .zip archive you just downloaded. 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 your 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 ./Runtime/FallbackColors.cs. 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.

StatusReleased
CategoryAssets
AuthorSmooth E
Made withPaint.net, Unity
Tags2D, 3D, Colorful, Unity
Average sessionA few seconds
LanguagesEnglish
LinksSource code

Download

Download NowName your own price

Click download now to get access to the following files:

com.smoothie.monetcolors.zip 49 kB

Comments

Log in with itch.io to leave a comment.

Good job! :)

😳🙂