您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
32 行
1.8 KiB
32 行
1.8 KiB
using UnityEditor.Graphing.Drawing;
|
|
using UnityEngine.MaterialGraph;
|
|
|
|
namespace UnityEditor.MaterialGraph.Drawing
|
|
{
|
|
public class MaterialGraphPresenter : AbstractGraphPresenter
|
|
{
|
|
protected MaterialGraphPresenter()
|
|
{
|
|
typeMapper[typeof(AbstractMaterialNode)] = typeof(MaterialNodePresenter);
|
|
typeMapper[typeof(ColorNode)] = typeof(ColorNodePresenter);
|
|
typeMapper[typeof(TextureNode)] = typeof(TextureNodePresenter);
|
|
typeMapper[typeof(TextureLODNode)] = typeof(TextureLODNodePresenter);
|
|
typeMapper[typeof(CubemapNode)] = typeof(CubeNodePresenter);
|
|
typeMapper[typeof(UVNode)] = typeof(UVNodePresenter);
|
|
typeMapper[typeof(Vector1Node)] = typeof(Vector1NodePresenter);
|
|
typeMapper[typeof(Vector2Node)] = typeof(Vector2NodePresenter);
|
|
typeMapper[typeof(Vector3Node)] = typeof(Vector3NodePresenter);
|
|
typeMapper[typeof(Vector4Node)] = typeof(Vector4NodePresenter);
|
|
typeMapper[typeof(SubGraphNode)] = typeof(SubgraphNodePresenter);
|
|
typeMapper[typeof(RemapMasterNode)] = typeof(RemapMasterNodePresenter);
|
|
typeMapper[typeof(MasterRemapInputNode)] = typeof(RemapInputNodePresenter);
|
|
typeMapper[typeof(AbstractSubGraphIONode)] = typeof(SubgraphIONodePresenter);
|
|
typeMapper[typeof(AbstractSurfaceMasterNode)] = typeof(SurfaceMasterPresenter);
|
|
typeMapper[typeof(LevelsNode)] = typeof(LevelsNodePresenter);
|
|
typeMapper[typeof(ConstantsNode)] = typeof(ConstantsNodePresenter);
|
|
typeMapper[typeof(SwizzleNode)] = typeof(SwizzleNodePresenter);
|
|
typeMapper[typeof(BlendModeNode)] = typeof(BlendModeNodePresenter);
|
|
typeMapper[typeof(AddManyNode)] = typeof(AddManyNodePresenter);
|
|
}
|
|
}
|
|
}
|