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 How can I hide function from derived class in fuzzy finder?

Discussion in 'Visual Scripting' started by byebye_Cola, Jul 24, 2023.

  1. byebye_Cola

    byebye_Cola

    Joined:
    Aug 13, 2019
    Posts:
    2
    If I add one class into Project Settings->Visual Scripting->Type Options.
    Unity always add it's derived class into my fuzzy finder like this: QQ截图20230724170226.png

    &Code like this:

    Code (CSharp):
    1. public class ConsoleSystem : MonoBehaviour
    2. {
    3.     public void TestFunction()    {    }
    4. }
    5.  
    6. public class SecondConsoleSystem : ConsoleSystem{}
    (if the class is not inherited from monobehaviour,will not add)

    I want fuzzy finder only show base class.

    Thanks.
     
  2. S2NX7

    S2NX7

    Joined:
    Aug 17, 2021
    Posts:
    26
    the one you dont want to show just make it private. If thats what you meant
     
  3. byebye_Cola

    byebye_Cola

    Joined:
    Aug 13, 2019
    Posts:
    2
    I mean only show base class's function, not show derived class's.