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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug The name 'OperatorUtility' does not exist in the currently context

Discussion in 'Editor & General Support' started by salutimfuturedev, Jan 7, 2023.

  1. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    Code (CSharp):
    1. return method.IsSpecialName && OperatorUtility.operatorNames.ContainsKey(method.Name);
    2.         }
    3.  
    4.         public static bool IsUserDefinedConversion(this MethodInfo method)
    5.         {
    6.             return method.IsSpecialName && (method.Name == "op_Implicit" || method.Name == "op_Explicit");
    7.         }
    8.  
    9.         /// <remarks>This may return an open-constructed method as well.</remarks>
    10.         public static MethodInfo MakeGenericMethodVia(this MethodInfo openConstructedMethod, params Type[] closedConstructedParameterTypes)
    11.         {
    12.             Ensure.That(nameof(openConstructedMethod)).IsNotNull(openConstructedMethod);
    13.             Ensure.That(nameof(closedConstructedParameterTypes)).IsNotNull(closedConstructedParameterTypes);
    14.  
    15.             if (!openConstructedMethod.ContainsGenericParameters)
    16.             {
    17.                 // The method contains no generic parameters,
    18.                 // it is by definition already resolved.
    What's wrong with the code?
    plz check the Attached Files
     

    Attached Files:

    Last edited: Jan 7, 2023
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,015
    Don't double post.

    There's an issue with your Visual Scripting package. It's nothing something you can fix yourself (or should be). Try uninstall and reinstall the package, or a clear of your project's library cache.
     
  3. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    All of cache?
     
  4. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    wtf I just deleted MemberUtility.cs file then this happened
     

    Attached Files:

  5. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    I don't want to be game developer now.
     
  6. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,015
    Well you decided to do neither of my suggestions. You should absolutely not be deleting files out of packages.
     
  7. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    Hey I tried to uninstall and reinstall the package and it didn't work and I restored MemberUtility.cs file
     
  8. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    Not this package
     

    Attached Files:

  9. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    So which cache should I clear?
     
  10. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    I tried to delete all of cache before but it didn't work
     
  11. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    I understand now u mean Visual Scripting package
     
  12. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    I don't know the location of file
     
  13. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    It could be easy check the screenshot
     

    Attached Files:

  14. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    okay I found the file probably this?
     

    Attached Files:

  15. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    Never work but ima try to find another ways help me
     
  16. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,015
  17. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    Okay I will
     
  18. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    WHAT THE BUG FIXED YEAH WE DID IT YOU ARE SMART GUY
     
  19. salutimfuturedev

    salutimfuturedev

    Joined:
    Jan 6, 2023
    Posts:
    16
    Now I can make game
    thank you so much :)