Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to disable script machine attached to my game object?

Discussion in 'Visual Scripting' started by Antares_GameStudios, May 16, 2023.

  1. Antares_GameStudios

    Antares_GameStudios

    Joined:
    Mar 6, 2023
    Posts:
    5
    In unity visual scripting I am disabling ledge check script machine so that my player can detect blocked left/blocked right using behavior set enabled node but it is not working.
    In Bolt "Flow machine set enabled" node can be used to disable but I need same function in Visual Scripting


    upload_2023-5-16_23-18-42.png
     
  2. Antares_GameStudios

    Antares_GameStudios

    Joined:
    Mar 6, 2023
    Posts:
    5
    I found the solution using "Get Component " node below

    upload_2023-5-19_5-34-6.png
     
  3. brian1gramm1

    brian1gramm1

    Joined:
    Sep 15, 2017
    Posts:
    55
    When I tried this...the "Script Machine" does not show up as option in the list of components. How did you select it? Thanks

    EDIT --SOLVED!--In my project settings->visual scripting-> Type Options --state machine was not included as a type node to add.
     
    Last edited: Jul 15, 2023