您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

39 行
918 B

using UnityEditor.ShaderGraph.Drawing.Controls;
using UnityEngine;
using UnityEditor.Graphing;
namespace UnityEditor.ShaderGraph
{
public abstract class GeometryNode : AbstractMaterialNode
{
[SerializeField]
private CoordinateSpace m_Space = CoordinateSpace.World;
[EnumControl("Space")]
public CoordinateSpace space
{
get { return m_Space; }
set
{
if (m_Space == value)
return;
m_Space = value;
if (onModified != null)
{
onModified(this, ModificationScope.Graph);
}
}
}
public override bool hasPreview
{
get { return true; }
}
public override PreviewMode previewMode
{
get { return PreviewMode.Preview3D; }
}
}
}