Skip to content

Commit

Permalink
Projectをアップロード
Browse files Browse the repository at this point in the history
  • Loading branch information
rarafy committed Aug 29, 2021
1 parent e9447e7 commit 07c8118
Show file tree
Hide file tree
Showing 67 changed files with 5,853 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _Project/Assets/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions _Project/Assets/Editor/ActiveToggle.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using UnityEditor;
using UnityEngine;

public static class ActiveToggle
{
private const int WIDTH = 16;

[InitializeOnLoadMethod]
private static void Example()
{
EditorApplication.hierarchyWindowItemOnGUI += OnGUI;
}

private static void OnGUI(int instanceID, Rect selectionRect)
{
var go = EditorUtility.InstanceIDToObject(instanceID) as GameObject;

if (go == null)
{
return;
}

var pos = selectionRect;
pos.x = pos.xMax - WIDTH;
pos.width = WIDTH;

var newActive = GUI.Toggle(pos, go.activeSelf, string.Empty);

if (newActive == go.activeSelf)
{
return;
}

go.SetActive(newActive);
}
}
11 changes: 11 additions & 0 deletions _Project/Assets/Editor/ActiveToggle.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions _Project/Assets/OpenJTalkForUnity.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions _Project/Assets/OpenJTalkForUnity/SampleScene.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 07c8118

Please sign in to comment.