docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ColorAffordanceTheme

    Affordance state theme data structure for for Color affordances.

    Inheritance
    object
    BaseAffordanceTheme<Color>
    ColorAffordanceTheme
    Implements
    IEquatable<BaseAffordanceTheme<Color>>
    Inherited Members
    BaseAffordanceTheme<Color>.animationCurve
    BaseAffordanceTheme<Color>.GetAffordanceThemeDataForIndex(byte)
    BaseAffordanceTheme<Color>.SetAffordanceThemeDataList(List<AffordanceThemeData<Color>>)
    BaseAffordanceTheme<Color>.SetAnimationCurve(AnimationCurve)
    BaseAffordanceTheme<Color>.Equals(BaseAffordanceTheme<Color>)
    BaseAffordanceTheme<Color>.Equals(object)
    BaseAffordanceTheme<Color>.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Overrides
    BaseAffordanceTheme<Color>.CopyFrom(BaseAffordanceTheme<Color>)

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)