mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
AvatarCloneTest: push so i can reference in an email
This commit is contained in:
parent
6d30fe1f41
commit
3660b8f683
16 changed files with 1155 additions and 0 deletions
20
AvatarCloneTest/AvatarClone/AvatarClone.Util.cs
Normal file
20
AvatarCloneTest/AvatarClone/AvatarClone.Util.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using ABI_RC.Core;
|
||||
using ABI_RC.Core.Player;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.AvatarCloneTest;
|
||||
|
||||
public partial class AvatarClone
|
||||
{
|
||||
private static bool CameraRendersPlayerLocalLayer(Camera cam)
|
||||
=> (cam.cullingMask & (1 << CVRLayers.PlayerLocal)) != 0;
|
||||
|
||||
private static bool CameraRendersPlayerCloneLayer(Camera cam)
|
||||
=> (cam.cullingMask & (1 << CVRLayers.PlayerClone)) != 0;
|
||||
|
||||
private static bool IsUIInternalCamera(Camera cam)
|
||||
=> cam == PlayerSetup.Instance.activeUiCam;
|
||||
|
||||
private static bool IsRendererValid(Renderer renderer)
|
||||
=> renderer && renderer.gameObject.activeInHierarchy;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue