Class ColorAffordanceTheme
Affordance state theme data structure for for Color affordances.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Theme.Primitives
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 |
---|---|
Single |
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. |
Overrides
UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Theme.BaseAffordanceTheme<UnityEngine.Color>.CopyFrom(UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Theme.BaseAffordanceTheme<UnityEngine.Color>)