您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
593 B
25 行
593 B
using System;
|
|
using RMGUI.GraphView;
|
|
using RMGUI.GraphView.Demo;
|
|
using UnityEngine;
|
|
using UnityEngine.Graphing;
|
|
|
|
namespace UnityEditor.Graphing.Drawing
|
|
{
|
|
[Serializable]
|
|
public class MaterialNodeAnchorData : NodeAnchorData
|
|
{
|
|
protected MaterialNodeAnchorData()
|
|
{}
|
|
|
|
public ISlot slot { get; private set; }
|
|
|
|
public void Initialize(ISlot slot)
|
|
{
|
|
this.slot = slot;
|
|
name = slot.displayName;
|
|
type = typeof(Vector4);
|
|
direction = slot.isInputSlot ? Direction.Input : Direction.Output;
|
|
}
|
|
}
|
|
}
|