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 Do I have to "Regenerate node " every time I change the script?

Discussion in 'Visual Scripting' started by seoyeon222222, Dec 6, 2021.

  1. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    152
    After creating a new method or field,
    do I have to do the "Regenerate node"(in project setting) every time to use it in VS?
    Without Regenerate node, the finder cannot find a method or field in VS.
    Is there another way?
     
  2. URocks

    URocks

    Joined:
    May 1, 2014
    Posts:
    159
    Code (CSharp):
    1.  
    2. UnitBase.Rebuild()
    3.  
    You can use code above to regeneeate units, I didnot find any other option how to do it...
     
  3. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    1,763
    UnitBase.Rebuild() for adding new types.

    UnitBase.Update() for when changes are made to already added types. This is a lot faster than full rebuild.
     
    URocks likes this.