Skip to content

Commit 7bf3da7

Browse files
Add DebugGLOptionsSection
1 parent 4b49a63 commit 7bf3da7

8 files changed

+63
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: 2fa68432b86f4196b9ae14b28fa6c4fc, type: 3}
13+
m_Name: New Debug GL Options Section Asset
14+
m_EditorClassIdentifier:

Assets/UGF.DebugTools.Runtime.Tests/New Debug GL Options Section Asset.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/UGF.DebugTools.Runtime.Tests/New Debug UI Section Drawer Asset.asset

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ MonoBehaviour:
2222
m_asset: {fileID: 11400000, guid: abf62bc648755db4681bd9e0dee115ba, type: 2}
2323
- m_guid: b78f2462ac2317f4d822640421fd7bc9
2424
m_asset: {fileID: 11400000, guid: b78f2462ac2317f4d822640421fd7bc9, type: 2}
25+
- m_guid: 464344f42daca684884fa03e4362fc2d
26+
m_asset: {fileID: 11400000, guid: 464344f42daca684884fa03e4362fc2d, type: 2}

Packages/UGF.DebugTools/Runtime/GL.Sections.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using UGF.DebugTools.Runtime.UI.Sections;
2+
3+
namespace UGF.DebugTools.Runtime.GL.Sections
4+
{
5+
public class DebugGLOptionsSection : DebugUISection
6+
{
7+
public DebugGLOptionsSection() : base("GL Options")
8+
{
9+
}
10+
11+
protected override void OnDrawGUILayout()
12+
{
13+
DebugGL.Drawer.Enable = DebugUI.FieldToggle("Enable", DebugGL.Drawer.Enable);
14+
}
15+
}
16+
}

Packages/UGF.DebugTools/Runtime/GL.Sections/DebugGLOptionsSection.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using UGF.DebugTools.Runtime.UI.Sections;
2+
using UnityEngine;
3+
4+
namespace UGF.DebugTools.Runtime.GL.Sections
5+
{
6+
[CreateAssetMenu(menuName = "Unity Game Framework/Debug/Debug GL Options Section", order = 2000)]
7+
public class DebugGLOptionsSectionAsset : DebugUISectionAsset
8+
{
9+
protected override DebugUISection OnBuild()
10+
{
11+
return new DebugGLOptionsSection();
12+
}
13+
}
14+
}

Packages/UGF.DebugTools/Runtime/GL.Sections/DebugGLOptionsSectionAsset.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)