public void OnInspectorGUI(Action onValueChanged)
{
// blend mode.
var newBlendMode = (BlendMode)EditorGUILayout.Popup("Rendering Mode", (int)blendMode, Enum.GetNames(typeof(BlendMode)), new GUILayoutOption[0]);
if (newBlendMode != blendMode) {
this.blendMode = newBlendMode;
onValueChanged();
}
}