Search Unity

Disable Script Via the Bolt

Discussion in 'Visual Scripting' started by VictorShabal, Feb 15, 2021.

  1. VictorShabal

    VictorShabal

    Joined:
    Feb 15, 2021
    Posts:
    9
    Sup guys! I am new to the bolt, faced with such issue. I need to make a trigger that will disable c# that was set to the object. Have found a guide about how to disable components, but can not find anything for scripts https://prnt.sc/zn5lem
    Your help would be highly appreciated
     
  2. ericb_unity

    ericb_unity

    Unity Technologies

    Joined:
    Nov 24, 2017
    Posts:
    167
    Your script is assigned as a component on a GameObject?

    Bolt 1.4.3
    You will need to import the Assembly and add your types.
    Open the Unit Option Wizard window.

    Tools->Bolt->Unit Option Wizard...
    upload_2021-2-16_9-43-55.png

    In the Assembly Options list, add your script
    Click next to go in the Types section
    In the Type Options section, add your types if needed.
    Click generate.

    If everything worked, you should be able to drag and drop the component with your script in the Visual Scripting Graph and see the fuzzy finder with your script section.
     
    art092 likes this.