Skip to content

Commit e7f7c15

Browse files
authored
api: change the accessor of UTS3MaterialHeaderScope to internal (#384)
1 parent 84ee99d commit e7f7c15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ namespace UnityEditor.Rendering.Toon
2323
/// </code>
2424
/// </example>
2525
/// </summary>
26-
public struct UTS3MaterialHeaderScope : IDisposable
26+
internal struct UTS3MaterialHeaderScope : IDisposable
2727
{
2828
/// <summary>Indicates whether the header is expanded or not. Is true if the header is expanded, false otherwise.</summary>
29-
public readonly bool expanded;
29+
internal readonly bool expanded;
3030
bool spaceAtEnd;
3131
#if !UNITY_2020_1_OR_NEWER
3232
int oldIndentLevel;
@@ -86,7 +86,7 @@ internal static bool DrawSubHeaderFoldout(GUIContent title, bool state, bool isB
8686
/// <param name="subHeader">Set to true to make this into a sub-header. This affects the style of the header. Set to false to make this use the standard style.</param>
8787
/// <param name="defaultExpandedState">The default state if the header is not present</param>
8888
/// <param name="documentationURL">[optional] Documentation page</param>
89-
public UTS3MaterialHeaderScope(GUIContent title, uint bitExpanded, MaterialEditor materialEditor, bool spaceAtEnd = true, bool subHeader = false, uint defaultExpandedState = uint.MaxValue, string documentationURL = "")
89+
internal UTS3MaterialHeaderScope(GUIContent title, uint bitExpanded, MaterialEditor materialEditor, bool spaceAtEnd = true, bool subHeader = false, uint defaultExpandedState = uint.MaxValue, string documentationURL = "")
9090
{
9191
if (title == null)
9292
throw new ArgumentNullException(nameof(title));
@@ -126,7 +126,7 @@ public UTS3MaterialHeaderScope(GUIContent title, uint bitExpanded, MaterialEdito
126126
/// <param name="materialEditor">The current material editor.</param>
127127
/// <param name="spaceAtEnd">Set this to true to make the block include space at the bottom of its UI. Set to false to not include any space.</param>
128128
/// <param name="subHeader">Set to true to make this into a sub-header. This affects the style of the header. Set to false to make this use the standard style.</param>
129-
public UTS3MaterialHeaderScope(string title, uint bitExpanded, MaterialEditor materialEditor, bool spaceAtEnd = true, bool subHeader = false)
129+
internal UTS3MaterialHeaderScope(string title, uint bitExpanded, MaterialEditor materialEditor, bool spaceAtEnd = true, bool subHeader = false)
130130
: this(EditorGUIUtility.TrTextContent(title, string.Empty), bitExpanded, materialEditor, spaceAtEnd, subHeader)
131131
{
132132
}

0 commit comments

Comments
 (0)