LoadFromCache() private method

private LoadFromCache ( int instanceID ) : SerializedObject
instanceID int
return SerializedObject
Beispiel #1
0
 internal override SerializedObject GetSerializedObjectInternal()
 {
     if (this.m_SerializedObject == null)
     {
         this.m_SerializedObject = SerializedObject.LoadFromCache(base.GetInstanceID());
     }
     if (this.m_SerializedObject == null)
     {
         this.m_SerializedObject = new SerializedObject(AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(base.target)));
     }
     return(this.m_SerializedObject);
 }
Beispiel #2
0
 internal override SerializedObject GetSerializedObjectInternal()
 {
     if (this.m_SerializedObject == null)
     {
         this.m_SerializedObject = SerializedObject.LoadFromCache(base.GetInstanceID());
     }
     if (this.m_SerializedObject == null)
     {
         this.m_SerializedObject = new SerializedObject(base.targets);
     }
     return(this.m_SerializedObject);
 }