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

Resolved Why do some methods not appear for a component to call on a graph event node?

Discussion in 'Visual Scripting' started by Sir_patrickl, Jul 26, 2023.

  1. Sir_patrickl

    Sir_patrickl

    Joined:
    Jun 24, 2013
    Posts:
    57
    I've created a embedded script graph and I want to call a Jump method of a component attached to the game object but it doesn't appear. I can see some other methods of the component but any new methods I add do not show up.

    Here is the relevant class/code

    Code (CSharp):
    1. public class BeatEmUpCharacterController : MonoBehaviour
    2. {
    3.   // does show up
    4.   public void Move(Vector2 move, Quaternion lookRotation)
    5.   {
    6.     ...
    7.   }
    8.  
    9.   // not showing up
    10.   public void Jump()
    11.   {
    12.     ...
    13.   }
    14. }
    Here is an example of where I'm trying to add the call. It shows some other jump fields but not the Jump() method. I also was able to call the Move() method on the same components.
    vs_jump.png

    I'm new to visual scripting (but not programing) so maybe I'm missing something here? Is there some form of cache that needs to be reset?

    Thanks
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    1,754
    pumpkinszwan likes this.
  3. Sir_patrickl

    Sir_patrickl

    Joined:
    Jun 24, 2013
    Posts:
    57
    Thanks, regenerating the node library did the trick!