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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Using a SerializedProperty after the object has been deleted is not possible

Discussion in 'Editor & General Support' started by hainan_deng, Oct 21, 2010.

  1. hainan_deng

    hainan_deng

    Joined:
    Oct 18, 2010
    Posts:
    6
    I'm studying the Bootcamp Demo, Gun Script has a 'Hit Layer' property.

    If I change the property, it causes an error..

    Using a SerializedProperty after the object has been deleted is not possible.

    Any idea?
     
  2. hainan_deng

    hainan_deng

    Joined:
    Oct 18, 2010
    Posts:
    6
    pics here.
     

    Attached Files:

    • $q2.JPG
      $q2.JPG
      File size:
      30.7 KB
      Views:
      1,116
    • $q1.JPG
      $q1.JPG
      File size:
      50 KB
      Views:
      1,149
  3. holyfuzz

    holyfuzz

    Joined:
    Nov 16, 2010
    Posts:
    21
    I too am having this problem for certain prefabs, albeit with my own projects. Any assistance would be appreciated. Thanks.
     
  4. pitibonom

    pitibonom

    Joined:
    Aug 17, 2010
    Posts:
    188
    hi all !

    Atm i'm playing with some flares, and changing the 'ignore layer' of flare, i also have
    this error. This also seems to make flares behaviour messy....
    Even on a new empty project the error is there meaning it's some unity bug and
    not an error of our own project changes.....