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 About the Type of SetVariable

Discussion in 'Visual Scripting' started by TAOhtani, May 18, 2023.

  1. TAOhtani

    TAOhtani

    Joined:
    Jan 12, 2022
    Posts:
    2
    Nice to meet you. I have begun exploring Visual Scripting.

    Does the behavior change if you put a variable in the box in the middle of SetVariable, versus when you connect it from the left side? If I connect Boolean GraphVariables as shown in the image, I get an error. On the other hand, if I specify directly in the middle box, there is no error and the value is overwritten.

    Does this mean that only Strings can be entered when making a connection?

    Error



    Specifying the variable within the box works without any issues.
     
  2. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    96
  3. TAOhtani

    TAOhtani

    Joined:
    Jan 12, 2022
    Posts:
    2
    I'm sorry for the delayed response. Thank you. I'll take a look.
    e delayed response. Thank you. I'll take a look.