Skip to content

Commit

Permalink
Fix some note objects not rendering on camera layer 8 (Note)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlackParrot committed Feb 7, 2025
1 parent d5f10e5 commit 4f70529
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NoteTweaks/Managers/OutlineManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public static void AddOutlineObject(Transform rootTransform, Mesh wantedMesh)
}

clonedOutlineObject.name = "NoteOutline";
clonedOutlineObject.layer = LayerMask.NameToLayer("Note");
clonedOutlineObject.SetActive(wantedMesh == InvertedBombMesh ? Config.EnableBombOutlines : Config.EnableNoteOutlines);
}
}
Expand Down
3 changes: 3 additions & 0 deletions NoteTweaks/Patches/NoteArrowPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ internal class NotePhysicalTweaks
private static GameObject CreateAccDotObject()
{
GameObject obj = GameObject.CreatePrimitive(PrimitiveType.Sphere);
obj.layer = LayerMask.NameToLayer("Note");

if (obj.TryGetComponent(out MeshRenderer meshRenderer))
{
meshRenderer.sharedMaterial = Materials.AccDotMaterial;
Expand All @@ -38,6 +40,7 @@ private static GameObject CreateAccDotObject()
{
Object.DestroyImmediate(sphereCollider);
}

obj.SetActive(false);
Plugin.Log.Info("setup acc dot object");

Expand Down

0 comments on commit 4f70529

Please # to comment.