@@ -6,7 +6,7 @@ namespace UnityEditor.Rendering
6
6
/// <summary>
7
7
/// Set of extensions to allow storing, getting and setting the expandable states of a <see cref="MaterialEditor"/> areas
8
8
/// </summary>
9
- public static partial class UTS3MaterialEditorExtension
9
+ internal static partial class UTS3MaterialEditorExtension
10
10
{
11
11
const string k_KeyPrefix = "CoreRP:Material:UI_State:" ;
12
12
@@ -64,7 +64,7 @@ static string GetEditorPrefsKey(this MaterialEditor editor)
64
64
/// <summary>
65
65
/// Set of extensions to handle more shader property drawer
66
66
/// </summary>
67
- public static partial class MaterialEditorExtension
67
+ internal static partial class MaterialEditorExtension
68
68
{
69
69
static Rect GetRect ( MaterialProperty prop )
70
70
{
@@ -78,7 +78,7 @@ static Rect GetRect(MaterialProperty prop)
78
78
/// <param name="prop">The MaterialProperty to make a field for</param>
79
79
/// <param name="label">Label for the property</param>
80
80
/// <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 )
82
82
{
83
83
EditorGUI . BeginChangeCheck ( ) ;
84
84
EditorGUI . showMixedValue = prop . hasMixedValue ;
@@ -98,7 +98,7 @@ public static void IntShaderProperty(this MaterialEditor editor, MaterialPropert
98
98
/// <param name="editor"><see cref="MaterialEditor"/></param>
99
99
/// <param name="prop">The MaterialProperty to make a field for</param>
100
100
/// <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 )
102
102
{
103
103
var limits = prop . rangeLimits ;
104
104
editor . IntSliderShaderPropertyUTS3 ( prop , ( int ) limits . x , ( int ) limits . y , label ) ;
@@ -112,7 +112,7 @@ public static void IntSliderShaderProperty(this MaterialEditor editor, MaterialP
112
112
/// <param name="min">The value at the left end of the slider</param>
113
113
/// <param name="max">The value at the right end of the slider</param>
114
114
/// <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 )
116
116
{
117
117
EditorGUI . BeginChangeCheck ( ) ;
118
118
EditorGUI . showMixedValue = prop . hasMixedValue ;
@@ -132,7 +132,7 @@ public static void IntSliderShaderPropertyUTS3(this MaterialEditor editor, Mater
132
132
/// <param name="prop">The MaterialProperty to make a field for</param>
133
133
/// <param name="label">Label for the property</param>
134
134
/// <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 )
136
136
{
137
137
EditorGUI . BeginChangeCheck ( ) ;
138
138
EditorGUI . showMixedValue = prop . hasMixedValue ;
@@ -151,7 +151,7 @@ public static void MinFloatShaderProperty(this MaterialEditor editor, MaterialPr
151
151
/// <param name="label">Label for the property</param>
152
152
/// <param name="displayedOptions">An array with the options shown in the popup</param>
153
153
/// <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 )
155
155
{
156
156
int val = ( int ) prop . floatValue ;
157
157
@@ -177,7 +177,7 @@ public static int PopupShaderProperty(this MaterialEditor editor, MaterialProper
177
177
/// <param name="displayedOptions">An array with the options shown in the popup</param>
178
178
/// <param name="optionValues">An array with the values for each option</param>
179
179
/// <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 )
181
181
{
182
182
int val = ( int ) prop . floatValue ;
183
183
@@ -203,7 +203,7 @@ public static int IntPopupShaderProperty(this MaterialEditor editor, MaterialPro
203
203
/// <param name="minLimit">The limit at the left end of the slider</param>
204
204
/// <param name="maxLimit">The limit at the right end of the slider</param>
205
205
/// <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 )
207
207
{
208
208
float minValue = min . floatValue ;
209
209
float maxValue = max . floatValue ;
@@ -224,7 +224,7 @@ public static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProp
224
224
/// <param name="minLimit">The limit at the left end of the slider</param>
225
225
/// <param name="maxLimit">The limit at the right end of the slider</param>
226
226
/// <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 )
228
228
{
229
229
Vector2 remap = remapProp . vectorValue ;
230
230
0 commit comments