您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
20 行
424 B
20 行
424 B
using UnityEngine;
|
|
using UnityEngine.RMGUI;
|
|
|
|
namespace RMGUI.GraphView
|
|
{
|
|
[GUISkinStyle("box")]
|
|
class FallbackGraphElement : GraphElement
|
|
{
|
|
public FallbackGraphElement()
|
|
{
|
|
content = new GUIContent("");
|
|
}
|
|
|
|
public override void OnDataChanged()
|
|
{
|
|
var data = GetData<GraphElementData>();
|
|
content.text = "Fallback for " + data.GetType() + ". No GraphElement registered for this type in this view.";
|
|
}
|
|
}
|
|
}
|