Skip to content

Commit

Permalink
v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BluWizard10 committed Mar 14, 2024
1 parent 5149816 commit c304457
Show file tree
Hide file tree
Showing 26 changed files with 174 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v0.5.0
- Slightly widened all custom Component Icons for display clarity.
- Changed Udon Behaviour Component icon to something that I think looked better when representing either an Udon Graph or an UdonSharp Component.
- Added icon for the `VRCHeadChop` Component introduced in SDK 3.5.2.

# v0.4.2
- Added isPlaying check to prevent icons and GUI changes from loading while in Play Mode. This should optimize performance.

Expand Down
22 changes: 15 additions & 7 deletions Editor/BluHierarchy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,6 @@ public static void RepaintHierarchyWindow()

private static void OnHierarchyGUI(int instanceID, Rect selectionRect)
{
// Check if Unity is in Play Mode
if (EditorApplication.isPlaying)
{
// Exit the method during Play Mode to optimize performance.
return;
}

// Convert the instance ID to a GameObject
GameObject go = EditorUtility.InstanceIDToObject(instanceID) as GameObject;
if (go == null) return;
Expand Down Expand Up @@ -180,6 +173,13 @@ private static void OnHierarchyGUI(int instanceID, Rect selectionRect)

if (BluHierarchySettings.ShowLayerIcon)
{
// Check if Unity is in Play Mode
if (EditorApplication.isPlaying)
{
// Exit the method during Play Mode to optimize performance.
return;
}

string layerName = LayerMask.LayerToName(go.layer);

if (layerIcons.ContainsKey(layerName))
Expand Down Expand Up @@ -214,6 +214,13 @@ private static void OnHierarchyGUI(int instanceID, Rect selectionRect)

foreach (Component component in components)
{
// Check if Unity is in Play Mode
if (EditorApplication.isPlaying)
{
// Exit the method during Play Mode to optimize performance.
return;
}

if (component == null) continue;

if (component is Transform && !BluHierarchySettings.ShowTransformIcon) continue;
Expand Down Expand Up @@ -245,6 +252,7 @@ private static void OnHierarchyGUI(int instanceID, Rect selectionRect)
else if (component.GetType().Name == "VRCContactReceiver") { icon = Resources.Load<Texture2D>("Icons/vrcContactReceiver"); }
else if (component.GetType().Name == "VRCContactSender") { icon = Resources.Load<Texture2D>("Icons/vrcContactSender"); }
else if (component.GetType().Name == "VRCImpostorSettings") { icon = Resources.Load<Texture2D>("Icons/vrcImpostorSettings"); }
else if (component.GetType().Name == "VRCHeadChop") { icon = Resources.Load<Texture2D>("Icons/vrcHeadChop"); }

// Load Custom Icons for VRC World SDK Components
else if (component.GetType().Name == "VRCSceneDescriptor") { icon = Resources.Load<Texture2D>("Icons/vrcSceneDescriptor"); }
Expand Down
Binary file modified Resources/Icons/VRCFury.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/bakeryGeneric.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcAVProVideoPlayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcAVProVideoScreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcAVProVideoSpeaker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcAvatarDescriptor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcAvatarPedestal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Icons/vrcHeadChop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
153 changes: 153 additions & 0 deletions Resources/Icons/vrcHeadChop.png.meta

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

Binary file modified Resources/Icons/vrcImpostorSettings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcMirrorReflection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcObjectPool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcObjectSync.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcPickup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcPipelineManager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcPortalMarker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcSceneDescriptor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcSpatialAudioSource.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcStation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcURLInputField.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcUdonBehaviour.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcUiShape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Icons/vrcUnityVideoPlayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "net.bluwizard.hierarchy",
"version": "0.4.2",
"version": "0.5.0",
"displayName": "BluHierarchy",
"unity": "2019.4",
"description": "Blu's personal editor enhancement system that introduces an improved Hierarchy look, tailored made for VRChat Creators.",
Expand Down

0 comments on commit c304457

Please sign in to comment.