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 ArgumentNullException: Value cannot be null. Parameter name: _unity_self

Discussion in 'Editor & General Support' started by leegod, May 2, 2023.

  1. Farsam

    Farsam

    Joined:
    Jul 24, 2023
    Posts:
    6
    Thanks that solved my problem!
     
  2. Mil8n_Games

    Mil8n_Games

    Joined:
    Oct 27, 2022
    Posts:
    1
    Just restart the thing
     
  3. brianduper

    brianduper

    Joined:
    Nov 12, 2020
    Posts:
    4
    i have this with unity version 2022.3.7f1 ... selecting a gameobject without a script before hitting play seems to be the workaround.
     
  4. JonathanCel

    JonathanCel

    Joined:
    Feb 17, 2021
    Posts:
    22
    In my case I was trying to Debug.Log( unityWebRequest.url ); after disposing the unityWebRequest.
    Guess it's related to a mismatch between the unity and native side of things?
     
  5. marcosatienzagd

    marcosatienzagd

    Joined:
    Sep 11, 2023
    Posts:
    4
    I'm having this same error on 2022.3.0. Should I try upgrading the Unity version, or the chances of getting more errors like this one are higher?
     
  6. ZombiePossum

    ZombiePossum

    Joined:
    Dec 10, 2013
    Posts:
    1
    I'm sure no one wants to hear this but I had this and simply restarting Unity and Visual Studio fixed it.
     
    bobbaluba likes this.
  7. Aekila

    Aekila

    Joined:
    Sep 27, 2023
    Posts:
    2
    Hi, I'm experiencing this issue on Unity 2022.3.10f1.

    Thank you for your comment, I'm now using the "click on nowhere" (at least not clicking on a gameobject with serializedRefs on a script) turnaround...

    I tried many times to upvote, but it seems that the issuetracker has also a really weird issue on this particular issue report... When I log in and try to go to this issue report, I get automatically an ending session and redirection to default issuetracker page... Anyway, simple turnaround seems to work fine for now.
     
    antsy1992 likes this.
  8. antsy1992

    antsy1992

    Joined:
    Jan 8, 2021
    Posts:
    3
    Lol I confirm this. I have the same behaviour on 2022.3.10f1.
     
    studiowebux likes this.
  9. SKGowrob

    SKGowrob

    Joined:
    Sep 12, 2021
    Posts:
    11
    I also confirm same issue on 2022.3.10f1 LTS
    "Seems to happen when a GameObject with a script is selected" is true.
     
  10. Papouth

    Papouth

    Joined:
    Mar 28, 2020
    Posts:
    3

    Yeah, experiencing the same issue on 2022.3.5f1

    It happen only when I press play with the GameObject with the script on it
     
  11. Rilantes

    Rilantes

    Joined:
    Jul 15, 2018
    Posts:
    1
    Seeing the same thing on 2022.3.11f1
     
  12. gnovos

    gnovos

    Joined:
    Apr 29, 2020
    Posts:
    21
    Same for latest 2022.3.11f1 an dhas been happening for quite a few versions. It seems to happen when looking at specific prefabs and objects in the inspector, particularly ones I've added or removed public/serialized fields from recently, and it usually won't display all the fields for the object until I click away and click back. It doesn't seem to affect the actual game when playing, but eventually the editor will crash.
     
  13. Raphael-Guitar-X

    Raphael-Guitar-X

    Joined:
    Sep 19, 2015
    Posts:
    1
    had this issue, solved by editng my player's code which had like a double check if grounded
     
  14. yangchang_n

    yangchang_n

    Joined:
    Jul 31, 2023
    Posts:
    1
    Same on 2022.3.10f1
    I wanted to observe how the value of that object changes during play, but that error message made me very uncomfortable. And after reading the comments, it looks like this problem will continue in version 2022.3.100000f1 as well :rolleyes: