{
protected override IEnumerable<GraphElementData> GetControlData()
var instance = CreateInstance<ColorContolDrawData>();
instance.Initialize(node);
return new List<GraphElementData> { instance };
}
AddTypeMapping(typeof(AbstractMaterialNode), typeof(MaterialNodeDrawData));
AddTypeMapping(typeof(ColorNode), typeof(ColorNodeDrawData));
AddTypeMapping(typeof(TextureNode), typeof(TextureNodeDrawData));
AddTypeMapping(typeof(Vector1Node), typeof(Vector1NodeDrawData));
var instance = CreateInstance<TextureContolDrawData>();
base.OnGUIHandler();
var tNode = node as UnityEngine.MaterialGraph.Vector1Node;
tNode.value = EditorGUILayout.FloatField ("Value:", tNode.value);
tNode.value = EditorGUILayout.FloatField("Value:", tNode.value);
public override float GetHeight()
var instance = CreateInstance<Vector1ContolDrawData>();
};
m_currentPreviewData = new List<NodePreviewDrawData>();
onEnter += SchedulePolling;
onLeave += UnschedulePolling;
public float value
get { return m_Value; }
set
if (m_Value == value)
return;
m_Value = value;
if (onModified != null)
onModified (this);
onModified(this);
public override void GeneratePropertyBlock(PropertyGenerator visitor, GenerationMode generationMode)