Skip to content

Commit d86c4b1

Browse files
authored
api: change the accessor of UTS3MaterialEditorExtension and MaterialEditorExtension to internal (#382)
1 parent 0638b9d commit d86c4b1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

com.unity.toonshader/Editor/MeterialEditor/UTS3MaterialEditorExtension.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace UnityEditor.Rendering
66
/// <summary>
77
/// Set of extensions to allow storing, getting and setting the expandable states of a <see cref="MaterialEditor"/> areas
88
/// </summary>
9-
public static partial class UTS3MaterialEditorExtension
9+
internal static partial class UTS3MaterialEditorExtension
1010
{
1111
const string k_KeyPrefix = "CoreRP:Material:UI_State:";
1212

@@ -64,7 +64,7 @@ static string GetEditorPrefsKey(this MaterialEditor editor)
6464
/// <summary>
6565
/// Set of extensions to handle more shader property drawer
6666
/// </summary>
67-
public static partial class MaterialEditorExtension
67+
internal static partial class MaterialEditorExtension
6868
{
6969
static Rect GetRect(MaterialProperty prop)
7070
{
@@ -78,7 +78,7 @@ static Rect GetRect(MaterialProperty prop)
7878
/// <param name="prop">The MaterialProperty to make a field for</param>
7979
/// <param name="label">Label for the property</param>
8080
/// <param name="transform">Optional function to apply on the new value</param>
81-
public static void IntShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label, System.Func<int, int> transform = null)
81+
internal static void IntShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label, System.Func<int, int> transform = null)
8282
{
8383
EditorGUI.BeginChangeCheck();
8484
EditorGUI.showMixedValue = prop.hasMixedValue;
@@ -98,7 +98,7 @@ public static void IntShaderProperty(this MaterialEditor editor, MaterialPropert
9898
/// <param name="editor"><see cref="MaterialEditor"/></param>
9999
/// <param name="prop">The MaterialProperty to make a field for</param>
100100
/// <param name="label">Label for the property</param>
101-
public static void IntSliderShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label)
101+
internal static void IntSliderShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label)
102102
{
103103
var limits = prop.rangeLimits;
104104
editor.IntSliderShaderPropertyUTS3(prop, (int)limits.x, (int)limits.y, label);
@@ -112,7 +112,7 @@ public static void IntSliderShaderProperty(this MaterialEditor editor, MaterialP
112112
/// <param name="min">The value at the left end of the slider</param>
113113
/// <param name="max">The value at the right end of the slider</param>
114114
/// <param name="label">Label for the property</param>
115-
public static void IntSliderShaderPropertyUTS3(this MaterialEditor editor, MaterialProperty prop, int min, int max, GUIContent label)
115+
internal static void IntSliderShaderPropertyUTS3(this MaterialEditor editor, MaterialProperty prop, int min, int max, GUIContent label)
116116
{
117117
EditorGUI.BeginChangeCheck();
118118
EditorGUI.showMixedValue = prop.hasMixedValue;
@@ -132,7 +132,7 @@ public static void IntSliderShaderPropertyUTS3(this MaterialEditor editor, Mater
132132
/// <param name="prop">The MaterialProperty to make a field for</param>
133133
/// <param name="label">Label for the property</param>
134134
/// <param name="min">The minimum value the user can specify</param>
135-
public static void MinFloatShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label, float min)
135+
internal static void MinFloatShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label, float min)
136136
{
137137
EditorGUI.BeginChangeCheck();
138138
EditorGUI.showMixedValue = prop.hasMixedValue;
@@ -151,7 +151,7 @@ public static void MinFloatShaderProperty(this MaterialEditor editor, MaterialPr
151151
/// <param name="label">Label for the property</param>
152152
/// <param name="displayedOptions">An array with the options shown in the popup</param>
153153
/// <returns>The index of the option that has been selected by the user</returns>
154-
public static int PopupShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label, string[] displayedOptions)
154+
internal static int PopupShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label, string[] displayedOptions)
155155
{
156156
int val = (int)prop.floatValue;
157157

@@ -177,7 +177,7 @@ public static int PopupShaderProperty(this MaterialEditor editor, MaterialProper
177177
/// <param name="displayedOptions">An array with the options shown in the popup</param>
178178
/// <param name="optionValues">An array with the values for each option</param>
179179
/// <returns>The value of the option that has been selected by the user</returns>
180-
public static int IntPopupShaderProperty(this MaterialEditor editor, MaterialProperty prop, string label, string[] displayedOptions, int[] optionValues)
180+
internal static int IntPopupShaderProperty(this MaterialEditor editor, MaterialProperty prop, string label, string[] displayedOptions, int[] optionValues)
181181
{
182182
int val = (int)prop.floatValue;
183183

@@ -203,7 +203,7 @@ public static int IntPopupShaderProperty(this MaterialEditor editor, MaterialPro
203203
/// <param name="minLimit">The limit at the left end of the slider</param>
204204
/// <param name="maxLimit">The limit at the right end of the slider</param>
205205
/// <param name="label">Label for the property</param>
206-
public static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProperty min, MaterialProperty max, float minLimit, float maxLimit, GUIContent label)
206+
internal static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProperty min, MaterialProperty max, float minLimit, float maxLimit, GUIContent label)
207207
{
208208
float minValue = min.floatValue;
209209
float maxValue = max.floatValue;
@@ -224,7 +224,7 @@ public static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProp
224224
/// <param name="minLimit">The limit at the left end of the slider</param>
225225
/// <param name="maxLimit">The limit at the right end of the slider</param>
226226
/// <param name="label">Label for the property</param>
227-
public static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProperty remapProp, float minLimit, float maxLimit, GUIContent label)
227+
internal static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProperty remapProp, float minLimit, float maxLimit, GUIContent label)
228228
{
229229
Vector2 remap = remapProp.vectorValue;
230230

0 commit comments

Comments
 (0)