diff --git a/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml b/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml
index dbe187f..143b45c 100644
--- a/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml
+++ b/UnityProject/.idea/.idea.UnityProject/.idea/contentModel.xml
@@ -20,12 +20,12 @@
-
+
-
-
+
+
diff --git a/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml b/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml
index 20328df..fd9831c 100644
--- a/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml
+++ b/UnityProject/.idea/.idea.UnityProject/.idea/workspace.xml
@@ -6,13 +6,15 @@
-
-
+
-
-
-
-
+
+
+
+
+
+
+
@@ -22,11 +24,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -59,28 +108,35 @@
-
+
-
-
+
+
-
-
-
-
-
-
-
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -88,120 +144,67 @@
-
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
@@ -213,27 +216,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
-
-
-
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -281,58 +292,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -358,7 +317,7 @@
-
+
-
+
-
+
@@ -401,12 +360,20 @@
1562417892841
-
+
+
+ 1562485186899
+
+
+
+ 1562485186899
+
+
-
+
@@ -421,14 +388,14 @@
-
-
+
+
-
+
@@ -440,7 +407,7 @@
-
+
@@ -465,6 +432,10 @@
+
+
+
+
@@ -595,35 +566,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -631,30 +573,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -666,33 +584,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -761,50 +652,26 @@
-
+
-
-
+
+
-
-
-
-
-
-
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
@@ -844,34 +711,44 @@
-
+
-
-
+
+
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -889,46 +766,175 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/UnityProject/Assembly-CSharp-Editor.csproj b/UnityProject/Assembly-CSharp-Editor.csproj
index 26fb39b..2a6959f 100644
--- a/UnityProject/Assembly-CSharp-Editor.csproj
+++ b/UnityProject/Assembly-CSharp-Editor.csproj
@@ -30,7 +30,7 @@
prompt
4
0169
- False
+ True
pdbonly
@@ -39,7 +39,7 @@
prompt
4
0169
- False
+ True
true
diff --git a/UnityProject/Assembly-CSharp.csproj b/UnityProject/Assembly-CSharp.csproj
index 5ca29b7..421348e 100644
--- a/UnityProject/Assembly-CSharp.csproj
+++ b/UnityProject/Assembly-CSharp.csproj
@@ -30,7 +30,7 @@
prompt
4
0169
- False
+ True
pdbonly
@@ -39,7 +39,7 @@
prompt
4
0169
- False
+ True
true
@@ -60,10 +60,10 @@
-
+
-
-
+
+
diff --git a/UnityProject/Assets/Materials/DebugPanel.mat b/UnityProject/Assets/Materials/DebugPanel.mat
new file mode 100644
index 0000000..ea809dd
--- /dev/null
+++ b/UnityProject/Assets/Materials/DebugPanel.mat
@@ -0,0 +1,77 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+ serializedVersion: 6
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_Name: DebugPanel
+ m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ m_ShaderKeywords:
+ m_LightmapFlags: 4
+ m_EnableInstancingVariants: 0
+ m_DoubleSidedGI: 0
+ m_CustomRenderQueue: -1
+ stringTagMap: {}
+ disabledShaderPasses: []
+ m_SavedProperties:
+ serializedVersion: 3
+ m_TexEnvs:
+ - _BumpMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailAlbedoMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailMask:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailNormalMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _EmissionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MainTex:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MetallicGlossMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _OcclusionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _ParallaxMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ m_Floats:
+ - _BumpScale: 1
+ - _Cutoff: 0.5
+ - _DetailNormalMapScale: 1
+ - _DstBlend: 0
+ - _GlossMapScale: 1
+ - _Glossiness: 0.5
+ - _GlossyReflections: 1
+ - _Metallic: 0
+ - _Mode: 0
+ - _OcclusionStrength: 1
+ - _Parallax: 0.02
+ - _SmoothnessTextureChannel: 0
+ - _SpecularHighlights: 1
+ - _SrcBlend: 1
+ - _UVSec: 0
+ - _ZWrite: 1
+ m_Colors:
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
+ - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
diff --git a/UnityProject/Assets/Materials/DebugPanel.mat.meta b/UnityProject/Assets/Materials/DebugPanel.mat.meta
new file mode 100644
index 0000000..8c465ca
--- /dev/null
+++ b/UnityProject/Assets/Materials/DebugPanel.mat.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: a8f5d1054ef74a44b9ad9a606a412c6a
+NativeFormatImporter:
+ externalObjects: {}
+ mainObjectFileID: 2100000
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/UnityProject/Assets/Scenes/MainScene.unity b/UnityProject/Assets/Scenes/MainScene.unity
index 0c0fe55..50ea3c5 100644
--- a/UnityProject/Assets/Scenes/MainScene.unity
+++ b/UnityProject/Assets/Scenes/MainScene.unity
@@ -300,12 +300,58 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 534669902}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 1, z: -10}
+ m_LocalPosition: {x: 0, y: 1, z: -13.7}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+--- !u!1 &848915471
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 848915472}
+ - component: {fileID: 848915473}
+ m_Layer: 0
+ m_Name: PointCloud
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &848915472
+Transform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 848915471}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_Children:
+ - {fileID: 2037885790}
+ m_Father: {fileID: 0}
+ m_RootOrder: 4
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+--- !u!114 &848915473
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 848915471}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: c0603bf64edb4c8885cefbc40ee206fe, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ kinectManagerBehaviour: {fileID: 437875428}
+ debugPanel: {fileID: 2037885789}
--- !u!1 &1641055256
GameObject:
m_ObjectHideFlags: 0
@@ -525,7 +571,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1641055256}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalPosition: {x: 0, y: 0, z: -2}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
@@ -547,3 +593,80 @@ MonoBehaviour:
pdArraySize: 100
lineRenderer: {fileID: 1641055257}
scale: 1
+--- !u!1 &2037885789
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 2037885790}
+ - component: {fileID: 2037885793}
+ - component: {fileID: 2037885792}
+ m_Layer: 0
+ m_Name: DebugPanel
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!4 &2037885790
+Transform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 2037885789}
+ m_LocalRotation: {x: -0.7071068, y: 0, z: 0, w: 0.7071068}
+ m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_Children: []
+ m_Father: {fileID: 848915472}
+ m_RootOrder: 0
+ m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
+--- !u!23 &2037885792
+MeshRenderer:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 2037885789}
+ m_Enabled: 1
+ m_CastShadows: 1
+ m_ReceiveShadows: 1
+ m_DynamicOccludee: 1
+ m_MotionVectors: 1
+ m_LightProbeUsage: 1
+ m_ReflectionProbeUsage: 1
+ m_RenderingLayerMask: 1
+ m_RendererPriority: 0
+ m_Materials:
+ - {fileID: 2100000, guid: a8f5d1054ef74a44b9ad9a606a412c6a, type: 2}
+ m_StaticBatchInfo:
+ firstSubMesh: 0
+ subMeshCount: 0
+ m_StaticBatchRoot: {fileID: 0}
+ m_ProbeAnchor: {fileID: 0}
+ m_LightProbeVolumeOverride: {fileID: 0}
+ m_ScaleInLightmap: 1
+ m_PreserveUVs: 0
+ m_IgnoreNormalsForChartDetection: 0
+ m_ImportantGI: 0
+ m_StitchLightmapSeams: 0
+ m_SelectedEditorRenderState: 3
+ m_MinimumChartSize: 4
+ m_AutoUVMaxDistance: 0.5
+ m_AutoUVMaxAngle: 89
+ m_LightmapParameters: {fileID: 0}
+ m_SortingLayerID: 0
+ m_SortingLayer: 0
+ m_SortingOrder: 0
+--- !u!33 &2037885793
+MeshFilter:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 2037885789}
+ m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
diff --git a/UnityProject/Assets/Scripts/VideoInput/InfraredCamera.cs b/UnityProject/Assets/Scripts/VideoInput/InfraredCamera.cs
index 9566907..4e8fbff 100644
--- a/UnityProject/Assets/Scripts/VideoInput/InfraredCamera.cs
+++ b/UnityProject/Assets/Scripts/VideoInput/InfraredCamera.cs
@@ -1,4 +1,5 @@
-using System.IO;
+using System;
+using System.IO;
using UnityEngine;
using Windows.Kinect;
@@ -19,6 +20,7 @@ namespace VideoInput
private readonly InfraredFrameReader reader_;
private readonly ushort [] irData_;
+
public InfraredCamera()
{
sensor_ = Windows.Kinect.KinectSensor.GetDefault();
@@ -31,8 +33,7 @@ namespace VideoInput
var frameDesc = sensor_.InfraredFrameSource.FrameDescription;
irData_ = new ushort[frameDesc.LengthInPixels];
-
- Data = new Texture2D(frameDesc.Width, frameDesc.Height, TextureFormat.R8, false);
+ Data = new Texture2D(frameDesc.Width, frameDesc.Height, TextureFormat.R16, false);
if (!sensor_.IsOpen)
sensor_.Open();
@@ -45,12 +46,16 @@ namespace VideoInput
var frame = reader_.AcquireLatestFrame();
if (frame == null) return;
-
- frame.CopyFrameDataToArray(irData_);
- var rawTextureData = Data.GetRawTextureData();
- for (var i = 0; i < irData_.Length; i++)
- rawTextureData[i] = (byte)(irData_[i] >> 8);
+ frame.CopyFrameDataToArray(irData_);
+
+ unsafe
+ {
+ fixed(ushort* irDataPtr = irData_)
+ {
+ Data.LoadRawTextureData((IntPtr) irDataPtr, sizeof(ushort) * irData_.Length);
+ }
+ }
Data.Apply();
frame.Dispose();
}
diff --git a/UnityProject/Assets/Scripts/VideoInput/KinectManager.cs b/UnityProject/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs
similarity index 71%
rename from UnityProject/Assets/Scripts/VideoInput/KinectManager.cs
rename to UnityProject/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs
index 5b4a35e..a233231 100644
--- a/UnityProject/Assets/Scripts/VideoInput/KinectManager.cs
+++ b/UnityProject/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs
@@ -1,15 +1,17 @@
-using UnityEngine;
+using System;
+using UnityEngine;
namespace VideoInput
{
- public class KinectManager : MonoBehaviour
+ public class KinectManagerBehaviour : MonoBehaviour
{
public IKinectSensor KinectSensor { get; private set; }
-
- private void Start()
+
+ private void Awake()
{
var componentFactory = new ComponentFactory();
KinectSensor = componentFactory.CreateKinectSensor();
+
}
private void Update()
diff --git a/UnityProject/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs.meta b/UnityProject/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs.meta
new file mode 100644
index 0000000..278234b
--- /dev/null
+++ b/UnityProject/Assets/Scripts/VideoInput/KinectManagerBehaviour.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 5b54a31bc1a14c1abb51fe86c56c6227
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/UnityProject/Assets/Scripts/Visualizer/PointCloud.cs b/UnityProject/Assets/Scripts/Visualizer/PointCloud.cs
deleted file mode 100644
index cd2c306..0000000
--- a/UnityProject/Assets/Scripts/Visualizer/PointCloud.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace VideoInput
-{
- public class PointCloud
- {
-
- }
-}
\ No newline at end of file
diff --git a/UnityProject/Assets/Scripts/Visualizer/PointCloudBehaviour.cs b/UnityProject/Assets/Scripts/Visualizer/PointCloudBehaviour.cs
new file mode 100644
index 0000000..a455790
--- /dev/null
+++ b/UnityProject/Assets/Scripts/Visualizer/PointCloudBehaviour.cs
@@ -0,0 +1,24 @@
+using UnityEngine;
+using VideoInput;
+
+namespace Visualizer
+{
+ class PointCloudBehaviour : MonoBehaviour
+ {
+ [SerializeField] private KinectManagerBehaviour kinectManagerBehaviour;
+ [SerializeField] private GameObject debugPanel;
+
+ private Renderer renderer_;
+
+ void Start()
+ {
+ renderer_ = debugPanel.GetComponent();
+ renderer_.material.mainTexture = kinectManagerBehaviour.KinectSensor.InfraredCamera.Data;
+ }
+
+ void Update()
+ {
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/UnityProject/Assets/Scripts/Visualizer/PointCloud.cs.meta b/UnityProject/Assets/Scripts/Visualizer/PointCloudBehaviour.cs.meta
similarity index 100%
rename from UnityProject/Assets/Scripts/Visualizer/PointCloud.cs.meta
rename to UnityProject/Assets/Scripts/Visualizer/PointCloudBehaviour.cs.meta
diff --git a/UnityProject/Assets/Scripts/Visualizer/WaveformVisualizer.cs b/UnityProject/Assets/Scripts/Visualizer/WaveformVisualizerBehaviour.cs
similarity index 93%
rename from UnityProject/Assets/Scripts/Visualizer/WaveformVisualizer.cs
rename to UnityProject/Assets/Scripts/Visualizer/WaveformVisualizerBehaviour.cs
index 9681aa4..5ace562 100644
--- a/UnityProject/Assets/Scripts/Visualizer/WaveformVisualizer.cs
+++ b/UnityProject/Assets/Scripts/Visualizer/WaveformVisualizerBehaviour.cs
@@ -2,7 +2,7 @@
namespace Visualizer
{
- public class WaveformVisualizer : MonoBehaviour
+ public class WaveformVisualizerBehaviour : MonoBehaviour
{
#pragma warning disable 649
[SerializeField] private string pdArrayName;
diff --git a/UnityProject/Assets/Scripts/Visualizer/WaveformVisualizer.cs.meta b/UnityProject/Assets/Scripts/Visualizer/WaveformVisualizerBehaviour.cs.meta
similarity index 100%
rename from UnityProject/Assets/Scripts/Visualizer/WaveformVisualizer.cs.meta
rename to UnityProject/Assets/Scripts/Visualizer/WaveformVisualizerBehaviour.cs.meta
diff --git a/UnityProject/Assets/ThridParty/KinectView/Scripts/InfraredSourceManager.cs b/UnityProject/Assets/ThridParty/KinectView/Scripts/InfraredSourceManager.cs
index bdb6b15..985ba8d 100644
--- a/UnityProject/Assets/ThridParty/KinectView/Scripts/InfraredSourceManager.cs
+++ b/UnityProject/Assets/ThridParty/KinectView/Scripts/InfraredSourceManager.cs
@@ -26,7 +26,7 @@ public class InfraredSourceManager : MonoBehaviour
_Reader = _Sensor.InfraredFrameSource.OpenReader();
var frameDesc = _Sensor.InfraredFrameSource.FrameDescription;
_Data = new ushort[frameDesc.LengthInPixels];
- _RawData = new byte[frameDesc.LengthInPixels * 4];
+ _RawData = new byte[frameDesc.LengthInPixels];
_Texture = new Texture2D(frameDesc.Width, frameDesc.Height, TextureFormat.BGRA32, false);
if (!_Sensor.IsOpen)
diff --git a/UnityProject/ProjectSettings/ProjectSettings.asset b/UnityProject/ProjectSettings/ProjectSettings.asset
index 71ced70..644fd87 100644
--- a/UnityProject/ProjectSettings/ProjectSettings.asset
+++ b/UnityProject/ProjectSettings/ProjectSettings.asset
@@ -534,7 +534,7 @@ PlayerSettings:
il2cppCompilerConfiguration: {}
managedStrippingLevel: {}
incrementalIl2cppBuild: {}
- allowUnsafeCode: 0
+ allowUnsafeCode: 1
additionalIl2CppArgs:
scriptingRuntimeVersion: 1
apiCompatibilityLevelPerPlatform:
diff --git a/UnityProject/UnityProject.sln.DotSettings.user b/UnityProject/UnityProject.sln.DotSettings.user
new file mode 100644
index 0000000..8b4b586
--- /dev/null
+++ b/UnityProject/UnityProject.sln.DotSettings.user
@@ -0,0 +1,2 @@
+
+ True
\ No newline at end of file