From 7fdf71a401ea4c8e50b84444e3518bbfc558ab38 Mon Sep 17 00:00:00 2001 From: homuler Date: Sat, 2 Jan 2021 22:26:29 +0900 Subject: [PATCH] fix: remove readonly --- Assets/MediaPipe/Examples/Scenes/DesktopCPU.unity | 4 ++++ Assets/MediaPipe/Examples/Scenes/DesktopGPU.unity | 4 ++++ .../MediaPipe/Examples/Scripts/WebCamScreenController.cs | 8 ++++---- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Assets/MediaPipe/Examples/Scenes/DesktopCPU.unity b/Assets/MediaPipe/Examples/Scenes/DesktopCPU.unity index a29dacf54..8f1803f94 100644 --- a/Assets/MediaPipe/Examples/Scenes/DesktopCPU.unity +++ b/Assets/MediaPipe/Examples/Scenes/DesktopCPU.unity @@ -843,6 +843,10 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 842caaa3595af5affbad9424323d3133, type: 3} m_Name: m_EditorClassIdentifier: + Width: 640 + Height: 480 + FPS: 30 + FocalLengthPx: 2 --- !u!64 &496037460 MeshCollider: m_ObjectHideFlags: 0 diff --git a/Assets/MediaPipe/Examples/Scenes/DesktopGPU.unity b/Assets/MediaPipe/Examples/Scenes/DesktopGPU.unity index 0592067d5..5103a81d6 100644 --- a/Assets/MediaPipe/Examples/Scenes/DesktopGPU.unity +++ b/Assets/MediaPipe/Examples/Scenes/DesktopGPU.unity @@ -843,6 +843,10 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 842caaa3595af5affbad9424323d3133, type: 3} m_Name: m_EditorClassIdentifier: + Width: 640 + Height: 480 + FPS: 30 + FocalLengthPx: 2 --- !u!64 &496037460 MeshCollider: m_ObjectHideFlags: 0 diff --git a/Assets/MediaPipe/Examples/Scripts/WebCamScreenController.cs b/Assets/MediaPipe/Examples/Scripts/WebCamScreenController.cs index 478081960..87731997f 100644 --- a/Assets/MediaPipe/Examples/Scripts/WebCamScreenController.cs +++ b/Assets/MediaPipe/Examples/Scripts/WebCamScreenController.cs @@ -3,10 +3,10 @@ using UnityEngine; public class WebCamScreenController : MonoBehaviour { - [SerializeField] readonly int Width = 640; - [SerializeField] readonly int Height = 480; - [SerializeField] readonly int FPS = 30; - [SerializeField] readonly float FocalLengthPx = 2.0f; /// TODO: calculate it from webCamDevice info if possible. + [SerializeField] int Width = 640; + [SerializeField] int Height = 480; + [SerializeField] int FPS = 30; + [SerializeField] float FocalLengthPx = 2.0f; /// TODO: calculate it from webCamDevice info if possible. private const int TEXTURE_SIZE_THRESHOLD = 50; private WebCamDevice webCamDevice;