soundvision/UnityProject/Assets/Scripts/Visualizer/IRPanelBehaviour.cs
2019-07-07 17:56:52 +02:00

21 lines
No EOL
565 B
C#

using UnityEngine;
using VideoInput;
namespace Visualizer
{
class IRPanelBehaviour : MonoBehaviour
{
#pragma warning disable 649
[SerializeField] private KinectManagerBehaviour kinectManagerBehaviour;
[SerializeField] private GameObject panel;
#pragma warning restore 649
private Renderer renderer_;
void Start()
{
renderer_ = panel.GetComponent<Renderer>();
renderer_.material.mainTexture = kinectManagerBehaviour.KinectSensor.InfraredCamera.Data;
}
}
}