public void Editor_DrawCustomParamsGUI() { #if UNITY_EDITOR string label = "Mask Painting"; string id = "mask-painter"; GCommonGUI.Foldout(label, true, id, () => { GMaskPainterParams param = GTexturePainterCustomParams.Instance.Mask; string[] labels = new string[] { "R (Terrain Mask)", "G (Smooth Normal Mask)", "B", "A" }; int[] values = new int[] { 1, 2, 4, 8 }; param.Channel = (GTextureChannel)EditorGUILayout.IntPopup("Channel", (int)param.Channel, labels, values); param.Visualize = EditorGUILayout.Toggle("Visualize", param.Visualize); GTexturePainterCustomParams.Instance.Mask = param; EditorUtility.SetDirty(GTexturePainterCustomParams.Instance); #if GRIFFIN_VEGETATION_STUDIO_PRO GCommonGUI.Header("Vegetation Studio Pro"); if (GUILayout.Button("Refresh Vegetation Systems")) { VegetationStudioManager.RefreshVegetationSystem(); } #endif }); #endif }