public void OnInspectorGUI(Action onValueChanged)
{
// wrapMode
var newWrapMode = (UnityEngine.TextureWrapMode)EditorGUILayout.Popup("Wrap Mode", (int)this.wrapMode, Enum.GetNames(typeof(UnityEngine.TextureWrapMode)), new GUILayoutOption[0]);
if (newWrapMode != this.wrapMode) {
this.wrapMode = newWrapMode;
onValueChanged();
}
// filterMode
var newFilterMode = (UnityEngine.FilterMode)EditorGUILayout.Popup("Filter Mode", (int)this.filterMode, Enum.GetNames(typeof(UnityEngine.FilterMode)), new GUILayoutOption[0]);
if (newFilterMode != this.filterMode) {
this.filterMode = newFilterMode;
onValueChanged();
}
// anisoLevel
using (new GUILayout.HorizontalScope()) {
GUILayout.Label("Aniso Level");
var changedVal = (int)EditorGUILayout.Slider(this.anisoLevel, 0, 16);
if (changedVal != this.anisoLevel) {
this.anisoLevel = changedVal;
onValueChanged();
}
}
EditorGUILayout.HelpBox("Aniso Level can be set only when RenderTexture does not have depth buffer.", MessageType.Info);
}