if (!string.IsNullOrEmpty(path) && m_InMemoryAsset != null)
{
File.WriteAllText (path, EditorJsonUtility.ToJson (m_InMemoryAsset.graph as object));
AssetDatabase.Refresh ();
AssetDatabase.ImportAsset (path);
if (asset != null)
if (asset != null) {
m_Selected = null;
}
void UpdateAsset()
//TODO: We need two currently.. fix later
m_Owner.UpdateAsset ();
if (shader == null)
return null;
File.WriteAllText (path, shaderString);
ShaderUtil.UpdateShaderAsset (shader, shaderString);
var shaderImporter = AssetImporter.GetAtPath(path) as ShaderImporter;