docs.unity3d.com
    Show / Hide Table of Contents

    Class ColorAffordanceTheme

    Affordance state theme data structure for for Color affordances.

    Inheritance
    Object
    BaseAffordanceTheme<Color>
    ColorAffordanceTheme
    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.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    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>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023