Class ColorAffordanceTheme
Affordance state theme data structure for for Color affordances.
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Theme.Primitives
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[Serializable]
public class ColorAffordanceTheme : BaseAffordanceTheme<Color>, IEquatable<BaseAffordanceTheme<Color>>
Properties
blendAmount
Value between 0 and 1 used to compute color blend modes.
Declaration
public float blendAmount { get; set; }
Property Value
Type | Description |
---|---|
float |
colorBlendMode
Blend mode used by the color affordance receiver when applying the new color.
Declaration
public ColorBlendMode colorBlendMode { get; set; }
Property Value
Type | Description |
---|---|
ColorBlendMode |
Methods
CopyFrom(BaseAffordanceTheme<Color>)
Makes this theme's settings match the settings of another theme.
Declaration
public override void CopyFrom(BaseAffordanceTheme<Color> other)
Parameters
Type | Name | Description |
---|---|---|
BaseAffordanceTheme<Color> | other | The ColorAffordanceTheme to deep copy values from. It will not be modified. |