LoadFromCache() private method

private LoadFromCache ( int instanceID ) : SerializedObject
instanceID int
return SerializedObject
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }