soundvision/UnityProject/Assets/Scripts/Visualizer/IRPanelBehaviour.cs

21 lines
565 B
C#
Raw Normal View History

2019-07-07 15:56:52 +00:00
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;
}
}
}