mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
35
.Deprecated/FuckOffUICamera/CohtmlRenderForwarder.cs
Normal file
35
.Deprecated/FuckOffUICamera/CohtmlRenderForwarder.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using ABI_RC.Core.UI;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.FuckOffUICamera;
|
||||
|
||||
[RequireComponent(typeof(Camera))]
|
||||
public class CohtmlRenderForwarder : MonoBehaviour
|
||||
{
|
||||
#region Private Variables
|
||||
|
||||
private CohtmlControlledView[] controlledViews;
|
||||
|
||||
#endregion Private Variables
|
||||
|
||||
#region Unity Events
|
||||
|
||||
private void OnPreRender()
|
||||
{
|
||||
if (controlledViews == null) return;
|
||||
foreach (CohtmlControlledView view in controlledViews)
|
||||
if (view) view.OnPreRender();
|
||||
}
|
||||
|
||||
#endregion Unity Events
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public static void Setup(Camera camera, params CohtmlControlledView[] views)
|
||||
{
|
||||
CohtmlRenderForwarder forwarder = camera.gameObject.AddComponent<CohtmlRenderForwarder>();
|
||||
forwarder.controlledViews = views;
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue