浏览代码

Replacing soon-to-be deprecated API Resources.Load(string) for Resources.Load<T>(string)

/main
JavDevGames 7 年前
当前提交
082d7d93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.shadergraph/Editor/Drawing/Blackboard/BlackboardProvider.cs

2
com.unity.shadergraph/Editor/Drawing/Blackboard/BlackboardProvider.cs


public BlackboardProvider(string assetName, AbstractMaterialGraph graph)
{
m_Graph = graph;
m_ExposedIcon = Resources.Load("GraphView/Nodes/BlackboardFieldExposed") as Texture2D;
m_ExposedIcon = Resources.Load<Texture2D>("GraphView/Nodes/BlackboardFieldExposed");
m_PropertyRows = new Dictionary<Guid, BlackboardRow>();
blackboard = new Blackboard()

正在加载...
取消
保存