public override void Draw(DrawInfo drawInfo) { base.Draw(drawInfo); EditorGUI.BeginChangeCheck(); m_type = (NoiseGeneratorType)m_upperLeftWidget.DrawWidget(this, m_type); if (EditorGUI.EndChangeCheck()) { ConfigurePorts(); } }
public override void DrawProperties() { base.DrawProperties(); EditorGUI.BeginChangeCheck(); m_type = (NoiseGeneratorType)EditorGUILayoutEnumPopup(TypeLabelStr, m_type); if (EditorGUI.EndChangeCheck()) { ConfigurePorts(); } //EditorGUILayout.HelpBox( "Node still under construction. Use with caution", MessageType.Info ); }
public override void ReadFromString(ref string[] nodeParams) { base.ReadFromString(ref nodeParams); m_type = (NoiseGeneratorType)Enum.Parse(typeof(NoiseGeneratorType), GetCurrentParam(ref nodeParams)); if (UIUtils.CurrentShaderVersion() < 16903) { m_setTo01Range = false; } else { m_setTo01Range = Convert.ToBoolean(GetCurrentParam(ref nodeParams)); m_unityVersion = Convert.ToBoolean(GetCurrentParam(ref nodeParams)); } ConfigurePorts(); }
public override void DrawProperties() { base.DrawProperties(); EditorGUI.BeginChangeCheck(); m_type = (NoiseGeneratorType)EditorGUILayoutEnumPopup(TypeLabelStr, m_type); if (EditorGUI.EndChangeCheck()) { ConfigurePorts(); } m_setTo01Range = EditorGUILayoutToggle(SetTo01RangeLabel, m_setTo01Range); if (m_type == NoiseGeneratorType.Gradient) { EditorGUI.BeginChangeCheck(); m_unityVersion = EditorGUILayoutToggle(UseUnityVersionLabel, m_unityVersion); if (EditorGUI.EndChangeCheck()) { ConfigurePorts(); } } //EditorGUILayout.HelpBox( "Node still under construction. Use with caution", MessageType.Info ); }
public override void ReadFromString(ref string[] nodeParams) { base.ReadFromString(ref nodeParams); m_type = (NoiseGeneratorType)Enum.Parse(typeof(NoiseGeneratorType), GetCurrentParam(ref nodeParams)); ConfigurePorts(); }