浏览代码

[shader graph]allow properties to be exposed (happens via UI)

/main
Tim Cooper 9 年前
当前提交
82eedf8b
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 4
      UnityProject/Assets/UnityShaderEditor/Editor/Source/MaterialGraph.cs
  2. 6
      UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PropertyNode.cs

4
UnityProject/Assets/UnityShaderEditor/Editor/Source/MaterialGraph.cs


using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

[SerializeField]
private PixelGraph m_PixelGraph;
[SerializeField]
private bool m_Expanded;
public int GetShaderInstanceID()
{

6
UnityProject/Assets/UnityShaderEditor/Editor/Source/Nodes/PropertyNode.cs


base.CollectPreviewMaterialProperties(properties);
properties.Add(GetPreviewProperty());
}
public override void OnGUI()
{
m_Exposed = EditorGUILayout.Toggle("Exposed Property", m_Exposed);
base.OnGUI();
}
}
}
正在加载...
取消
保存