public void Set_MaterialChannel(Material mat, Vector2 t, float r, Vector2 s, SWTexShowChannel channel) { Set_Material(mat, t, r, s); int i = (int)channel; mat.SetInt("cmode", i); }
protected void TexShowChnEnum() { Rect rect = new Rect(al_leftWidth + 10, al_topHeight + 30, 40, 10); var c = (SWTexShowChannel)EditorGUI.EnumPopup(rect, "", texShowChannel); if (texShowChannel != c) { SWUndo.Record(this); texShowChannel = c; TexShowChnEnumSet(); } }