|
|
|
|
|
|
[NonSerialized] |
|
|
|
public bool forceRedrawPreviews = false; |
|
|
|
|
|
|
|
ColorSpace m_ColorSpace = PlayerSettings.colorSpace; |
|
|
|
|
|
|
|
GraphEditorView m_GraphEditorView; |
|
|
|
|
|
|
|
GraphEditorView graphEditorView |
|
|
|
|
|
|
if (m_HasError) |
|
|
|
return; |
|
|
|
|
|
|
|
if (PlayerSettings.colorSpace != m_ColorSpace) |
|
|
|
{ |
|
|
|
graphEditorView = null; |
|
|
|
} |
|
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
if (graphObject == null && selectedGuid != null) |
|
|
|
|
|
|
{ |
|
|
|
var asset = AssetDatabase.LoadAssetAtPath<Object>(AssetDatabase.GUIDToAssetPath(selectedGuid)); |
|
|
|
graphEditorView = new GraphEditorView(this, materialGraph, asset.name) { persistenceKey = selectedGuid }; |
|
|
|
m_ColorSpace = PlayerSettings.colorSpace; |
|
|
|
} |
|
|
|
|
|
|
|
if (forceRedrawPreviews) |
|
|
|