docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Switch

    Implements
    IFlowNode
    INode
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Runtime
    Assembly: solution.dll
    Syntax
    [Serializable]
    [NodeDescription("The **Switch** node let the flow change its execution port when the case integer value of the selector is the same as the case value.\n\n**Note:** To add or remove case, right click on the node and select (Add Case or Remove Case).\n**Tip:** The Default output port will be executed if the selector value is in none of the Case value.")]
    public struct Switch : IFlowNode, INode

    Fields

    Name Description
    Default
    Input
    Selector
    SwitchTriggers
    SwitchValues

    Methods

    Name Description
    Execute<TCtx>(TCtx, InputTriggerPort)

    Extension Methods

    IVisualScriptingEventReceiverJobExtensions.Schedule<TJob, TEvent>(TJob, VisualScriptingEventSystem, JobHandle)
    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)