Search Unity

Scriptable object lost nested Scriptable object reference

Discussion in 'Scripting' started by hsjaaa, Jun 6, 2019.

  1. hsjaaa

    hsjaaa

    Joined:
    Apr 30, 2016
    Posts:
    29
    Use many nest scriptable object and nested in scriptable object, found that when call Resources.FindObjectsOfTypeAll sometimes it didn't return all the object of the type but sometimes do. also could lose nested scriptable object reference sometimes and get null reference error. it just feels inconsistent. Not sure how it happened, is there something to watch out for?