Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StyleColor

Style value that can be either a Color or a StyleKeyword.
Read time 1 minuteLast updated 10 days ago

Definition

public struct StyleColor : IStyleValue<Color>, IEquatable<StyleColor>

Constructors

Constructor

Description

StyleColor(UnityEngine.Color)Creates from either a Color or StyleKeyword.
StyleColor(UnityEngine.UIElements.StyleKeyword)Creates from either a Color or StyleKeyword.

Properties

Property

Description

keywordThe style keyword.
valueThe Color value.