Search Unity

Resolved its possible to change visual script graph variables in inspector like public variables in c#?

Discussion in 'Visual Scripting' started by prboba2, Dec 5, 2022.

  1. prboba2

    prboba2

    Joined:
    Jun 3, 2022
    Posts:
    2
    its possible to change visual script graph variables in inspector like public variables in c#?
    also i saw bolt video where component "variables" and variables in script graph synchronized.
    its possible on a newest visual scripting packege?
    *sorry for bad eng*
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,065
    Change how? Object, Scene and Application Visual Scripting variables are public by default, so the value can be changed at edit time same as C# scripts.

    Variables component is the same as Object variables tab is the Graph editor's Variables inspector. They're synced by default if I understand your meaning. You get access to Object variables tab only when an object with Variables component is selected in Hierarchy.
     
    Last edited: Dec 5, 2022
  3. prboba2

    prboba2

    Joined:
    Jun 3, 2022
    Posts:
    2
    it wont sync until this moment
    i dont know why
    maybe it was a bug