docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VariantsManager.Switch<T>

    A switch allow to select and set a current variant as active

    Inheritance
    object
    VariantsManager.Switch
    VariantsManager.Switch<T>
    VariantsManager.MaterialSwitch
    VariantsManager.TransformSwitch
    Inherited Members
    VariantsManager.Switch.selectVariant(object)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.PixyzPlugin4Unity.Components
    Assembly: Unity.Pixyz.Plugin4Unity.dll
    Syntax
    [Serializable]
    public abstract class VariantsManager.Switch<T> : VariantsManager.Switch
    Type Parameters
    Name Description
    T

    The type of variant that the class should manage

    Constructors

    Name Description
    Switch(string)

    Construct Switch

    Fields

    Name Description
    name

    The name of the variant set

    state

    The currently selected variant

    variants

    The list of all available variants

    Methods

    Name Description
    getState()

    Returns the currently selected variant

    getVariants()

    Returns the variants handled by the switch

    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)