Search Unity

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:
    120
  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.